原创 android 4.0 體驗!!!!
sdk新特徵參見:http://developer.android.com/sdk/api_diff/14/changes.html android新版本4.0發佈 今天在模擬器上跑了跑 。 感覺UI設計有很大提高 而且有些元素很
原创 Service使用總結 與sdk部分翻譯
1. Service SDK翻譯 自己的翻譯 英語不好 硬着頭皮翻譯了些: A Service is an application component that can perform long-running operation
原创 android apk下載 安裝 卸載 打開
Android程序使用代碼的安裝和卸載!!! 安裝: String str = "/CanavaCancel.apk"; String fileName = Environment.getExternalStorageDirec
原创 【so easy~】 GPS的那點兒事兒~!
http://androiddada.iteye.com/ 最近發現微信等應用都有找附近的人 的新功能。 遍開始想看看gps 於是找了些網上的代碼,自己試了試: public class GPS_testActivity e
原创 轉:shape 漸變!描邊!圓角!漂亮的自定義背景
在實現背景漸變的帖子裏 http://androidturing.iteye.com/blog/1238909 有朋友建議看看shape的用法,確實很有幫助。這裏我偷懶轉一篇比較詳細的帖子,和大家一起進步~! Android中常常使
原创 【so easy~】 Intent實現 功能!~
http://androiddada.iteye.com/ Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/plain"); // 分享的
原创 AppWidget數據持久化
一定切記AppWidgetProvider裏的變量每次都重新初始化的···所以千萬變把數據變量放AppWidgetProvider裏面 AppWidget中的數據如何保存呢?當然可以使用android常用的四種方式(參見androi
原创 Notification實現下載進度顯示!
用慣了Android的人在剛拿到iPhone的時候,總是會習慣性的用手指從狀態欄往下拖一下,這都是給Notification鬧的。不過Notification也確實是1個不錯的提示工具,不干擾正常的操作,事後還可以再翻看詳細的內容,點
原创 【BUG解決】token null is not valid; is your activity running?異常解決
popuwindows使用時出現異常: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is
原创 【BUG解決】Android ListView只加載當前屏幕內的圖片(解決list滑動時加載卡頓)...
http://androiddada.iteye.com/ 最近在做ListView分頁顯示,其中包括圖片 和文字(先下載解析文字內容,再異步加載圖片)發現每次點擊下一頁後,文字內容加載完畢,馬上向下滑動,由於這時後臺在用線程池異步
原创 android 數據持久化簡述
Android 移動平臺數據持久化的研究 在 Google Android 平臺中,數據的持久化,官方提供了四種方法,分別爲:1. SharePerfrence;2. Files;3. 數據庫 4. 網絡。
原创 AppWidget 設置大小的問題
x爲桌面的單元格數 設置大小爲(x*74-2) dip
原创 【BUG解決】ListView getView()多次調用 -----ActivityGroup導致!?
最近做的ActivityGroup實現底部menu(iPhone一樣的) 其中一個頁面裏是一個自定義的Listview,發現getView方法被調用了多次!有時甚至上百次··暈! 網上很多帖子都說是height設置成fill就可以,但事實
原创 Android之系統自帶的文字外觀設置及實際顯示效果圖
Android之系統自帶的文字外觀設置及實際顯示效果圖 android:textAppearance xml佈局裏面設置文字的外觀: 如“android:textAppearance=“?android:attr/textAppea
原创 將博客搬至CSDN
將博客搬至CSDN