Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
notes:android_tips [2013/01/31 18:34] admin |
notes:android_tips [2013/11/04 21:29] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Android tips ====== | ====== Android tips ====== | ||
+ | ===== HowTo take a screenshot on Android device ===== | ||
+ | On Ice Cream Sandwich (4.0) or above, press the Volume Down and Power buttons at the same time and hold them for a second. | ||
+ | ===== Deploying Android SDK on Ubuntu (32bit) ===== | ||
+ | * Download ADT Bundle from **http://dl.google.com/android/adt/adt-bundle-linux-x86.zip** | ||
+ | * Install ADT Bundle | ||
+ | <code> | ||
+ | $ mkdir ~/projects/android | ||
+ | $ cd ~/projects/android/ | ||
+ | $ cp ~/Downloads/Android/adt-bundle-linux-x86.zip ./ | ||
+ | $ unzip adt-bundle-linux-x86.zip | ||
+ | </code> | ||
+ | * Install JDK (copy jre directory) into ./eclipse subdirectory | ||
+ | * Install necessary packages for building project from command line | ||
+ | <code> | ||
+ | $ sudo apt-get install ant | ||
+ | $ sudo sudo apt-get install default-jdk | ||
+ | </code> | ||
+ | * Make sure binaries are accessible | ||
+ | <code> | ||
+ | $ echo $PATH | ||
+ | /home/dambi/bin:... | ||
+ | $ ls -l /home/dambi/bin/android | ||
+ | lrwxrwxrwx 1 dambi dambi 58 Dec 24 09:36 /home/dambi/bin/android -> ../projects/android/adt-bundle-linux-x86/sdk/tools/android | ||
+ | $ ls -l /home/dambi/bin/adb | ||
+ | lrwxrwxrwx 1 dambi dambi 63 Dec 5 16:57 /home/dambi/bin/adb -> ../projects/android/adt-bundle-linux-x86/sdk/platform-tools/adb | ||
+ | $ | ||
+ | </code> | ||
===== Managing Android project ===== | ===== Managing Android project ===== | ||
* Create project | * Create project | ||
Line 10: | Line 37: | ||
</code> | </code> | ||
===== Debugging ===== | ===== Debugging ===== | ||
- | * display log | + | * display whole log |
<code> | <code> | ||
$ adb logcat | $ adb logcat | ||
+ | </code> | ||
+ | * filter out irrelevant messages | ||
+ | <code> | ||
+ | $ adb logcat -s ObdLogger:* | ||
</code> | </code> | ||
===== Devices ===== | ===== Devices ===== | ||
Line 24: | Line 55: | ||
Though logging can be enabled from hidden service menu. | Though logging can be enabled from hidden service menu. | ||
* Activate hidden menu by dialing ***#*#2846579#*#*** | * Activate hidden menu by dialing ***#*#2846579#*#*** | ||
- | * Enable logging: ProjectMenu -> Background setting -> Log setting -> Log switch -> LOG on | + | * Enable logging: **ProjectMenu -> Background setting -> Log setting -> Log switch -> LOG on** |
- | * Set desired log level: ProjectMenu -> Background setting -> Log setting -> Log level setting | + | * Set desired log level: **ProjectMenu -> Background setting -> Log setting -> Log level setting** |
+ | * Reboot device |