I used the official code example as a starting point to write my own library. On the first few lines :
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ /* This is a JNI example where we use native methods to play sounds * using OpenSL ES. See the corresponding Java source file located at: * * src/com/example/nativeaudio/NativeAudio/NativeAudio.java */
But of course being an example code, the code I have now does not look like it except some initialization routines, which all code that is going to use this library should do anyways. One thing that can be trace back to the code example is that I left the variable names related to said initialization logic as is as it is already good.
So do I have to put attribution in this case of the fact that I am learning from an example code with license? How much modification to consider that the code to become my own?
If I have to, because it is an Apache license I have to state changes. I have to state that I changed everything except the initialization routine?