finally, we build our project. Now, I haven't a hot clue if this will work: I think ant is distributed with the Android SDK. Let's find out:
9. open the main activity for the example project in an editor
look in PenderExample/src and follow the directory tree down to the activity
open up the activity located in PenderExample/src/com/pender/example/exampleactivity.java
10. replace everything under the package statement with:
import android.app.Activity;
import android.os.Bundle;
import com.pender.Pender;
public class PenderActivity extends Activity
{
/** Called when the activity is first created. */
bss@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
mPender = new Pender(this);
mPender.init();
}
private Pender mPender;
}
11. build your project,from your PenderExample root, run
ant debug
12. install on a device
adb install bin/blah.apk
where blah.apk will be something like PenderExample-debug.apk
Alternatively to step 11, you can now import the Library and Example project to eclipse, and let it build and install for you