今天在編譯Launcher時莫名其妙報錯:build/core/base_rules.mk:166: *** packages/apps/Launcher2/bin: MODULE.TARGET.APPS.Launcher2 already defined by packages/apps/Launcher2。
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學習之旅了,今天抽空繼續。簡單一點吧,就瞧瞧那個Grid的效果,Android提供了一個GridView,不過從APIDemo中看來,它似乎與PC上的GRID差別還是挺大的,更像那個IconView的感覺。不知道Android中如何?表格介面?雖然在移動終端上,表格一般不會有誰使用,大家似乎更傾向於使用ListView,而Android對於ListView則有更簡單的實現ListActivity。廢話不說,還是自己寫幾句代碼來實驗一下。<GridView id
繼續android.app中的幾個類的學習,今天的內容是那幾個Dialog的體驗。注意到android.app包下除了Dialog(可用於製作複雜的對話方塊)以外,還包括了幾個系統定義好的對話方塊類,如DatePickerDialog、TimePickerDialog及AlertDialog。其中AlertDialog我上回用過一次,基本上就那樣子了,今天看看另外兩個對話方塊的使用吧。首先是DatePickerDialog類,修改代碼如下:public class HelloTwoC exten