摘要:If you add a Button on the view of each item in ListView,the touch event is catched and reacted by the button instead of the ListView even outside the area of the Button.The item can not be selected and switched.It's a simplest solution that you can set the attribute android:focusable to be fals
阅读全文
摘要:How to add virtual keys on status bar?(for the version beforeFroyo)There are 6 .png for touch up and touch down of 3 buttonsPut 72 dpi and 48 dpi which can be found in Google native source code intoframeworks/base/core/res/res/drawable-hdpiframeworks/base/core/res/res/drawable-mdpirespectively (P.S.
阅读全文
摘要:Android's native web browser is webkit based.Each front view of web is an object of WebView added by TabControl as the structure illustrated below:Android originally support multi-touch scenerio.In framworks/base/core/java/android/webkit/WebView.java,There is a function showed below checking if curr
阅读全文
摘要:If you meet following errors below when you try to build your source code:Checking build tools versions...build/core/main.mk:72:************************************************************build/core/main.mk:73: You are attempting to build on a 32-bitsystem.build/core/main.mk:74: Only 64-bit build en
阅读全文
摘要:If you meet this error when trying the build your android code:make: Entering directory `/bsp/Project_Name'build/core/main.mk:7: You are not using bash - builds will failbuild/core/main.mk:8: *** Stop. Stop.make: Leaving directory `/bsp/Project_Name'Previous version of Android seems not to check if
阅读全文
摘要:When we start be buildan UI, or make definition of the dimensions,It's an issuewe will meet -what are the difference of px, sp, pt, dip, dp, in, and mm?Hereare the definitions:px - PixelIndependentfrom devices corresponding to actual pixels on the screen. (e.g. HVGA: 320x480)pt - Points1/72 of an in
阅读全文
摘要:How to pass the view of emergency call every time you clean boot your android device?We can previously insert a item in sqlite database /data/data/com.android.providers.settings/databases/settings.db in advance,and reboot it.for example:adb shell sqlite3 /data/data/com.android.providers.settings/dat
阅读全文
摘要:How can we use"Hotkey" on the keyboardwhen using Android emulator which doesn't show the physical keyboard?Especially when we set customized resolutions.It's the table for Hotkey below.Please refer to http://developer.android.com/guide/developing/tools/emulator.htmlfor more information.Emulated Devi
阅读全文
摘要:Why it appears "time out"when downloading Android source code from Google's git server?Getting repo ... from git://android.git.kernel.org/tools/repo.gitandroid.git.kernel.org[0: 130.239.17.12]: errno=Connection timed outandroid.git.kernel.org[0: 149.20.20.141]: errno=Connection timed outandroid.git.
阅读全文
摘要:When trying to download the Android source from Google using the command below:(by Google's instructions http://source.android.com/source/download.html)repo init -u git://android.git.kernel.org/platform/manifest.gitwith following error when repo init:bin/repo: line 1: !DOCTYPE: No such file or direc
阅读全文