2012年10月4日 星期四

Intent懶人包


ysl 的程式天堂 - Android 應用開發

http://ysl-paradise.blogspot.tw/2008/12/intent.html


在Eclipse中觀看Android元件的原始碼

※以版本2.3.3為例

1.Download sources:
https://code.google.com/p/lizongbo/downloads/list
下載 : android_gingerbread_javasrc.zip
並儲存在 C:/android_gingerbread_javasrc.zip

2.
選一個 2.3.3 的專案>Properties --> Java Build Path --> Libraries (選擇此標籤)

3.
展開 Android 2.3.3

4.
展開  android.jar

5.
點選Source attachment
點選右側Button [Edit]

6.
選擇下方 External location
點選右側Button [External File...] ==> 選擇檔案 -- > C:/android_gingerbread_javasrc.zip

7.
重新啟動 Ecplise

8.
按下 Ctrl 會出現"鼠標手指"即可按下滑鼠"右鍵"觀看原始碼 !