- 顯示可用的android 模擬器 - android list avd
- 啟動模擬器 - emulator -avd
- 利用shell連線到模擬器 - abd shell
- 從device當中拷貝出檔案 - adb pull local_path remote_path
- 將檔案拷貝到device當中 - adb push
remote_path local_path



R.java file is an index into all the resources defined in the file.
l Each activity is independent of the others. Each one is implemented as a subclass of the Activity base class.
l An application might consist of just one activity or, like the text messaging application just mentioned, it may contain several.
l One of the activities is marked as the first one that should be presented to the user when the application is launched.
l Each activity is given a default window to draw in.
l As an activity transitions from state to state, it is notified of the change by calls to the following protected methods:
void onCreate(Bundle savedInstanceState)
void onStart()
void onRestart()
void onResume()
void onPause()
void onStop()
void onDestroy()
l All of these methods are hooks that you can override to do appropriate work when the state changes. All activities must implement onCreate() to do the initial setup when the object is first instantiated. Many will also implementonPause() to commit data changes and otherwise prepare to stop interacting with the user.