Original editionToday, I receive an email from USA, which ask me if I have solved this problem or not. I reply him and attached with my blog's link. But I'm not sure whether he can understand my original blog although we have powerful google. So I
1. A service runs in the main thread of its hosting process—the service does not create its own thread and does not run in a separate process (unless you specify otherwise)service雖然沒有UI,也不可以做耗時操作,否則依舊有ActivityManager報ANR,即使將service設定到另外一個process中也不行,
1.啟動流程/system/rootdir/init.rczygote/framework/base/cmds/app_process/app_process.cpp/framework/base/core/jni/AndroidRuntime.cppstartstartVM 設定啟動時的heapsize大小,default 16mstartrRegapp_process main()create a AndroidRuntime first, then
最近在系統學習了android的影像處理(在網上搜集了一些資料並自己編寫了測試程式,做了整理),現在這裡做一總結:一、ColorMatrix類ColorMatrix是一個5x4階的矩陣 在下面表示為A,第一行表示R紅色分量,第二行表示G綠色分量,第三行表示B藍色分量,第四行表示透明度:用一維數組的儲存方式如下: [ a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t ],顏色矩陣和顏色分量相乘之後得到新的顏色如下:R‘ =
繼續android.app中的幾個類的學習,今天的內容是那幾個Dialog的體驗。注意到android.app包下除了Dialog(可用於製作複雜的對話方塊)以外,還包括了幾個系統定義好的對話方塊類,如DatePickerDialog、TimePickerDialog及AlertDialog。其中AlertDialog我上回用過一次,基本上就那樣子了,今天看看另外兩個對話方塊的使用吧。首先是DatePickerDialog類,修改代碼如下:public class HelloTwoC exten