Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| notes:android_tips [2013/01/31 18:34] – admin | notes:android_tips [2026/10/25 19:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| 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:// | ||
| + | * Install ADT Bundle | ||
| + | < | ||
| + | $ mkdir ~/ | ||
| + | $ cd ~/ | ||
| + | $ cp ~/ | ||
| + | $ unzip adt-bundle-linux-x86.zip | ||
| + | </ | ||
| + | * Install JDK (copy jre directory) into ./eclipse subdirectory | ||
| + | * Install necessary packages for building project from command line | ||
| + | < | ||
| + | $ sudo apt-get install ant | ||
| + | $ sudo sudo apt-get install default-jdk | ||
| + | </ | ||
| + | * Make sure binaries are accessible | ||
| + | < | ||
| + | $ echo $PATH | ||
| + | / | ||
| + | $ ls -l / | ||
| + | lrwxrwxrwx 1 dambi dambi 58 Dec 24 09:36 / | ||
| + | $ ls -l / | ||
| + | lrwxrwxrwx 1 dambi dambi 63 Dec 5 16:57 / | ||
| + | $ | ||
| + | </ | ||
| ===== Managing Android project ===== | ===== Managing Android project ===== | ||
| * Create project | * Create project | ||
| Line 10: | Line 37: | ||
| </ | </ | ||
| ===== Debugging ===== | ===== Debugging ===== | ||
| - | * display log | + | * display |
| < | < | ||
| $ adb logcat | $ adb logcat | ||
| + | </ | ||
| + | * filter out irrelevant messages | ||
| + | < | ||
| + | $ adb logcat -s ObdLogger:* | ||
| </ | </ | ||
| ===== 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 ***# | * Activate hidden menu by dialing ***# | ||
| - | * Enable logging: ProjectMenu -> Background setting -> Log setting -> Log switch -> LOG on | + | * Enable logging: |
| - | * Set desired log level: ProjectMenu -> Background setting -> Log setting -> Log level setting | + | * Set desired log level: |
| + | * Reboot device | ||
