Difference between revisions of "Android SDK reference"
From thelinuxwiki
(→connecting to a physical phone) |
(→connecting to a physical phone using adb) |
||
(One intermediate revision by one user not shown) | |||
Line 29: | Line 29: | ||
/android-sdk-linux_x86/platform-tools/adb install -r bin/example-app.apk | /android-sdk-linux_x86/platform-tools/adb install -r bin/example-app.apk | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[category:android]] | [[category:android]] |
Latest revision as of 12:11, 3 February 2014
starting the android sdk manager
~/src/android_sdk/android-sdk-linux_x86/tools $ android
new android projects
Some files like local.properties contain paths, like the one to the android SDK. These will be different between yourself and other developers. So, this file is excluded from git. The android update command needs to be run
- prior to compiling a new project for the first time
- if I move the location of the android SDK
- might need to run it after future SDK updates
example:
2:40PM:hostname:5956> android update project --path ~/src/empire Updated local.properties Updated file /home/jonedoe/src/empire/proguard.cfg
building / compiling projects
ant is the java compiler. example:
2:47PM:box:5961> ant debug Buildfile: /home/johndoe/src/empire/build.xml ... ... ... BUILD SUCCESSFUL Total time: 5 seconds
install app to emulator
/android-sdk-linux_x86/platform-tools/adb install -r bin/example-app.apk