雜項8



why LoadingActivity invoke  onSaveInstanceState , it is finished by killing process .
why register also invoke it .


You do not have to store view states, as they are stored automatically.
onRestoreInstanceState This method is called after onStart() when the activity is being re-initialized from a previously saved state




Context ActivityManager info  . infomation in process and information in systemserver process 


File Object which file not exist will cause strange issue 


http://www.eoeandroid.com/thread-54083-1-1.html
webview telephone 




bind three type , extend bind(only in one process ) ,use message , use aidl 


generate onbind 
binder parcel
bindService should 同步get 一個對象,但是現在用了一個 connection call back


xcopy   E:\ddz\AndroidManifest.xml  E:\eclipsespace\newAnd\GoldFull /S/Y/F/C
複製 幾個 xml file


layout 找不到 ,重新builder


Android 爲何只讓結束單個Activity
http://www.cnmsdn.com/html/201101/1295516531ID9286.html
 android:background="@null"
 android內核分析---low memory killer 
 http://blog.chinaunix.net/space.php?uid=9185047&do=blog&cuid=2522052
 


 一個Process 只能使用16M內存 ,有人說java 使用過的內存,不能被C 使用。所有分配圖片時候,
 http://stackoverflow.com/questions/1955410/bitmapfactory-oom-driving-me-nuts
 Bitmap data is not allocated in the VM heap. There is a reference to it in the VM heap (which is small), but the actual data is allocated in the Native heap by the underlying Skia graphics library.
 The Nat?ve heap is shared between running applications, so the amount of free space depends on what other applications are running and their bitmap usage. But, given that BitmapFactory will not return, you need a way to figure out if 


the call is going to succeed before you make it.
 getNativeHeapFreeSize() 


 I think you're deep into undocumented behavior here-- you wouldn't be able to count on any answer you get being consistent across different Android versions or devices.
 http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon?answertab=active#tab-top
 
 LauncherActivity why publish ?
 
 shop ananysiys data 
 
 遙控
 
 Integrated Circuit
 http://hi.baidu.com/sljsjw/blog/item/c77f02017836a40e1c95834a.html
 非接觸式IC卡(射頻卡)
 這個電子標籤可能就是一個RFID tag
 
 
 Session Initiation Protocol 
 Device Administration
 PowerManager
wifiLock
UMTS  UMTS的英文全稱爲Universal Mobile Telecommunication System 3G
WiMax
 
 why logon null pointer ,找不到 id ,rebuild 往往就可以了
 
07-04 13:52:15.017: ERROR/ActivityThread(13688): Activity ronco.ddz.Game has leaked ServiceConnection com.javgame.goldisland.manager.AccessManager$1@44944238 that was originally bound here
07-04 13:52:15.017: ERROR/ActivityThread(13688): android.app.ServiceConnectionLeaked: Activity ronco.ddz.Game has leaked ServiceConnection com.javgame.goldisland.manager.AccessManager$1@44944238 that was originally bound here
需要把它關掉 不連接了
leakwindow 




HttpServiceTask , 合併task ,
default option 。
 static option


http://blog.csdn.net/xieqibao/article/details/6584049
launch
http://gqdy365.iteye.com/blog/861047








打牌輸了 爲什麼? 失敗促反省,勝利促信心
判斷 決斷




view  
Parcelable onSaveInstanceState ()
android 復原 ,系統復原




windows feture and windowLayout 可以設置 window 顯示。
也可以用 style ,dialog  ,activity  和 view 都可以用style 
popup window ?


最當前的activity 。
toast 彈出窗口


管理 ,就是 view 加入manager ,窗口 只是管理本地view ,
可以設置style ,或者 背景顏色




Window  a top-level window look and behavior policy
1 policy 管理 ,作爲最頂層的view ,提供背景,titile ,以及事件處理等。具體view 可以用content view 來處理。
Activity decoder view 。


popupwindow 就沒有 window 了。




07-06 09:06:43.988: INFO/ActivityManager(59): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.javgame.goldisland/.LogoActivity }
07-06 09:06:45.499: DEBUG/AndroidRuntime(733): Shutting down VM
07-06 09:06:45.667: INFO/ActivityManager(59): Start proc com.javgame.goldisland for activity com.javgame.goldisland/.LogoActivity: pid=740 uid=10036 gids={3003, 1006, 1015}
07-06 09:06:48.097: INFO/ActivityManager(59): Displayed activity com.javgame.goldisland/.LogoActivity: 2511 ms (total 2511 ms)




每個view創建一個viewRoot(這是邏輯上的東西,用來負責view的事件處理和邏輯處理,並和WindowsManagerService建立聯繫),而在WindowManagerImpl裏,會維護viewRoot的數組。
view 是純java windowManager 纔是真正的處理。管理顯示事件傳送


每個view 的構造函數,一 1 屬性 2 default style Attributes. 可以改變view 的狀況 。其實 還是屬性列表 。
我們可以改變 1 theme ,2 改變 default style Attributes 的值。我們可以直接定義一個 style Attributes ,傳進去,而不用
internal 的 com.android.internal.R.attr.textViewStyle 。
但是有些 屬性,我們還是不好訪問。我們只能修改那些public ,而不是 interna 的 att 。


theme 可以 任意設置。肯定會被用到。




TypedArray obtainStyledAttributes(
            AttributeSet set, int[] attrs, int defStyleAttr, int defStyleRes) {
int[] attrs ,是View 可以設置的屬性列表,無法更改 
        defStyleAttr ,定義 style 的屬性。  defStyleRes ,直接style ,一般爲 0 ,少用。 
            


Dialog(Context context, int theme)
Dialog 不是組件,需要自己定義 theme 。而且無法改變屬性 。


但是 popupwindow ,定義 和一個 view 一樣


ViewStub  這個類大概意思是用ViewStub類和在XML文件裏面指定的佈局資源文件關聯起來,讓佈局資源文件在需要使用的時候再加載上去。主要作用是性能優化,什麼時候用什麼時候加載,
ViewTreeObserver  監聽view 。


一個是資源,主要是界面資源finish ,服務器端管理。
一個 是java null 。
Toast 類似popup window  ,不需要activiy ,自己註冊到窗口,放在最前面。can set view ,but no focus 。


activity propery and Intent flag 衝突。


WindowManager.LayoutParams wl = w.getAttributes();


FLAG_ACTIVITY_REORDER_TO_FRONT 可以把某個activity bring to front 。
flag 可以 動態設置 activity 屬性




UI 線程 ,異步 start activity ?


install 沒有1.6




UI debug 


http://tech.it168.com/a2009/0505/274/000000274986.shtml
需要 mac 機器 ,mac os ,xcode  
Touch不支持垃圾收集。
Cocoa
 蘋果的面向對象開發框架,用來生成 Mac OS X 的應用程序。主要的開發語言爲 Objective-c, 一個c 的超集。 Cocoa 開始於1989年9月上市的NeXTSTEP 1.0,當時沒有Foundation框架,只有動態運行庫, 稱爲 kit, 最重要的是AppKit. 1993 


MID的重量少於300克,英特爾甚至稱,MID可放入錢包中攜帶。MID採用4英寸到6英寸的顯示屏,操作系統並非採用Windows,而是Linux,現在也有使用android系統的。MID與UMPC的區別是MID沒有完整的PC功能,在尺寸上也只有5英寸大。






土耳其機器人
安騰(Itanium)處理器是構建在IA-64(Intel Architecture 64)
x86-64 可變指令長度的CISC(複雜指令集計算機,Complex Instruction Set Computer)
多年來,小型機堅守可靠性陣地,但是在性能方面可能也是心有餘力不足吧,因爲IBM的Power6是個雙核處理器。而X86架構的服務器處理器,已經走到6核、8核、12核時代了。
英特爾至強


Apple Darwin 操作系統家族 NEXTSTEP, 類UNIX
http://zh.wikipedia.org/wiki/Apple_Darwin
蘋果電腦的PowerPC架構 但蘋果電腦自2005年起,將旗下電腦產品轉用Intel CPU






http://baike.baidu.com/view/3194202.htm
越獄是指開放用戶的操作權限,使得用戶可以隨意擦寫任何區域的
運行狀態,只有越獄成功後iphone的iphone)文件系統才處於可讀寫(rw)狀態,可以安裝和運行未經過官方認證的第三方程序、插件。


1988年,NeXT Software公司獲得了Objective-C語言的授權,並開發出了Objective-C的語言庫和一個名爲NEXTSTEP的開發環境
NEXTSTEP/OPENSTEP環境成爲蘋果操作系統下一個主要發行版本OS X的基礎。這個開發環境的該版本被蘋果公司稱爲Cocoa。






apple pc 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章