Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:android:starting_an_android_project [2011/03/11 21:44] – created billh | docs:android:starting_an_android_project [2012/02/14 20:49] (current) – [Build] billh | ||
---|---|---|---|
Line 5: | Line 5: | ||
* http:// | * http:// | ||
- | ==== Setup ==== | + | ===== Setup ===== |
- obtain the android sdk, install it on your computer | - obtain the android sdk, install it on your computer | ||
Line 20: | Line 20: | ||
</ | </ | ||
- | ==== Build ==== | + | ===== Build ===== |
- modify source code as desired | - modify source code as desired | ||
Line 26: | Line 26: | ||
- build the app in debug mode: ant debug | - build the app in debug mode: ant debug | ||
* note that the first attempt of 'ant debug' failed saying the debug certificate was expired; online search said to delete ~/ | * note that the first attempt of 'ant debug' failed saying the debug certificate was expired; online search said to delete ~/ | ||
+ | * if you get the error %%taskdef class com.android.ant.SetupTask cannot be found%%, you have probably changed the install location of the android sdk | ||
+ | * update the local.properties file in the root of your project to have the correct path to the android sdk | ||
+ | ==== R.java ==== | ||
+ | R.java is necessary for the app to run, and is referenced in some tutorials. | ||
- | ==== Deployment ==== | + | ===== Deployment |
- | === physical device (your actual phone) === | + | ==== physical device (your actual phone) |
- enable usb debugging on your phone | - enable usb debugging on your phone | ||
* press Menu -> Settings -> Applications | * press Menu -> Settings -> Applications | ||
Line 65: | Line 69: | ||
- | === virtual device === | + | ==== virtual device |
- create an android virtual device to test your programs on | - create an android virtual device to test your programs on | ||
Line 75: | Line 79: | ||
adb -s emulator-5554 install / | adb -s emulator-5554 install / | ||
</ | </ | ||
- | |||
- | ==== R.java ==== | ||
- | R.java is necessary for the app to run, and is referenced in some tutorials. | ||