Be Smart

FANTAISIE

SmartPhone - iPhone, iPad, Android

导航

随笔分类 -  Android

[Android 問題] How to Add a Button in ListView, and Make the Event of onClick and onItemClick Coexist?
摘要: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 阅读全文

posted @ 2011-03-23 09:57 FANTAISIE 阅读(2235) 评论(0) 推荐(0)

[Android 問題] How to Add Virtual Keys on Status Bar?
摘要: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. 阅读全文

posted @ 2011-01-25 16:50 FANTAISIE 阅读(1662) 评论(1) 推荐(0)

[Android 問題] How to Activate Multi-Touch in WebView (for Web Browser, Google Map, etc)?
摘要: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 阅读全文

posted @ 2011-01-03 20:51 FANTAISIE 阅读(2958) 评论(0) 推荐(0)

[Android 問題] 64-bit Environment Required When Checking Build Tool Versions
摘要: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 阅读全文

posted @ 2010-12-24 18:26 FANTAISIE 阅读(1943) 评论(0) 推荐(0)

[Android 問題] Make/Build Error: You are not using bash - builds will fail
摘要: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 阅读全文

posted @ 2010-12-24 13:04 FANTAISIE 阅读(672) 评论(0) 推荐(0)

[Android 資訊] Differences of px, sp, pt, dip, dp, in, and mm?
摘要: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 阅读全文

posted @ 2010-12-24 12:32 FANTAISIE 阅读(453) 评论(0) 推荐(0)

[Android 問題] How to Bypass The View of Emergency Call?
摘要: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 阅读全文

posted @ 2010-12-23 15:21 FANTAISIE 阅读(382) 评论(0) 推荐(0)

[Android 資訊] Android Emulator Hotkey
摘要: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 阅读全文

posted @ 2010-12-21 12:22 FANTAISIE 阅读(519) 评论(0) 推荐(0)

[Android 問題] Time Out When Downloading Android Source Code
摘要: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. 阅读全文

posted @ 2010-12-21 12:16 FANTAISIE 阅读(391) 评论(0) 推荐(0)

[Android 問題] Repo Error
摘要: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 阅读全文

posted @ 2010-12-21 12:05 FANTAISIE 阅读(973) 评论(0) 推荐(0)