2011年8月28日 星期日

LayoutLib is too recent. Update your tool!

如標題,當你打開Android XML 檔案 在

Graphical Layout下檢視發現 LayoutLib is too recent. Update your tool!

請點選 Help > Install New Software > work with

https://dl-ssl.google.com/android/eclipse/

勾選 Android Development Tools 將其更新完 

即可成功在Graphical Layout下檢視Android XML 檔案

2011年8月25日 星期四

關閉webview的scroll功能

相信很多人在使用webview時,會發現

不論網頁大小都可以拖拉,明明網頁大小就剛好

卻因為點及拖動,導致網頁裡的東西也跟著移動

因此,若要關閉此功能,請在webview 的xml 設定中 加上

android:scrollbars="none"

2011年8月23日 星期二

Android handler

今天在做一個 有關於定時追蹤定位的功能 其中比較特別的是以下幾個Method


onLocationChanged(Location location)
requestLocationUpdates(String Provider,long minTime,float minDistance,PendingIntent intent)
removeUpdates(PendingIntent intent)

2011年8月22日 星期一

Project has no default.properties file! Edit the project properties to set one.

Project has no default.properties file! Edit the project properties to set one.

如果遇到上述問題,若 Project 是 import 進來的話,請先刪除

再利用 File - > New - > Project - > Android Project - > Create Project from existing source

即可正確載入 !

2011年8月12日 星期五

Android SDK tools from revision 11 to revision 12

當Android SDK tools 從 revision 11 更新到 revision 12時

會發現啟動模擬器時會出現下列的錯誤 :

invalid command-line parameter: Files\Android\android-sdk\tools/emulator-arm.exe.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information