Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
notes:android_tips [2013/01/31 18:33] – created adminnotes:android_tips [2026/10/25 19:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Managing Android project ======+====== 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 =====
   * Create project   * Create project
 <code> <code>
Line 8: Line 36:
 $ ant debug install $ ant debug install
 </code> </code>
-====== Debugging ====== +===== Debugging ===== 
-  * display log+  * display whole log
 <code> <code>
 $ adb logcat $ adb logcat
 </code> </code>
-====== Devices ====== +  * filter out irrelevant messages 
-===== Enable logging on Huawei Ascent G300 =====+<code> 
 +$ adb logcat -s ObdLogger:* 
 +</code> 
 +===== Devices ===== 
 +==== Enable logging on Huawei Ascent G300 ====
 Logging feature is disabled by default on that device. Logging feature is disabled by default on that device.
 <code> <code>
Line 23: 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
notes/android_tips.1359653613.txt.gz · Last modified: (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0