STEP1
點選工具列File → New → Android Application Project
-Application Name = Project Name >> ExHello
-Package Name : com.example.[Lower Letter of Project Name] >> com.example.exhello
STEP2
點選Next 進入:配置專案
STEP3
點選Next 進入:配置App圖示屬性
STEP4
點選Next 進入:建立活動
STEP5
點選Next 進入:建立活動版面配置(e.g. Blank Activity)
-Activity Name:Main
-Layout Name: activity_main
點選Finish
STEP6
點選Project>Clean,,,>Check on "Clean all projects">OK
STEP7在智慧型手機上建立你的手機應用程式:
[Way I]點選Run>Run Configurations...>點選Android Application:
-Name:ExHello
-Project:Input project name by clicking browse to select a project name to launch.
點選Target:
Deployment target selection mode:
Check on "Always prompt to pick device"
>點選Apply>Run
>Wait done until installing successfully:
[2015-02-10 23:04:34 - ExHello] Android Launch!
[2015-02-10 23:04:34 - ExHello] adb is running normally.
[2015-02-10 23:04:34 - ExHello] Performing com.example.exhello.MainActivity activity launch
[2015-02-10 23:04:34 - ExHello] Automatic Target Mode: using device '043ee7953089e92f'
[2015-02-10 23:04:34 - ExHello] Uploading ExHello.apk onto device '043ee7953089e92f'
[2015-02-10 23:04:34 - ExHello] Installing ExHello.apk...
[2015-02-10 23:04:38 - ExHello] Success!
[2015-02-10 23:04:38 - ExHello] Starting activity com.example.exhello.MainActivity on device 043ee7953089e92f
[2015-02-10 23:04:39 - ExHello] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.exhello/.MainActivity }
>Check the application has been bulit into your phone
[Way II] 在Package Explorer中的特定專案按滑鼠右鍵>Run As>1 Android Application
>Wait done until installing successfully:
[2015-02-11 00:34:00 - ExHello] Dx
trouble writing output: already prepared
[2015-02-11 00:34:09 - ExHello] ------------------------------
[2015-02-11 00:34:09 - ExHello] Android Launch!
[2015-02-11 00:34:09 - ExHello] adb is running normally.
[2015-02-11 00:34:09 - ExHello] Performing com.example.exhello.MainActivity activity launch
[2015-02-11 00:34:09 - ExHello] Automatic Target Mode: using device '043ee7953089e92f'
[2015-02-11 00:34:09 - ExHello] Uploading ExHello.apk onto device '043ee7953089e92f'
[2015-02-11 00:34:09 - ExHello] Installing ExHello.apk...
[2015-02-11 00:34:12 - ExHello] Success!
[2015-02-11 00:34:12 - ExHello] Starting activity com.example.exhello.MainActivity on device 043ee7953089e92f
[2015-02-11 00:34:13 - ExHello] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.exhello/.MainActivity }
>Check the application has been bulit into your phone
*Reference*
http://readandplay.pixnet.net/blog/post/140001110-%E7%AC%AC%E4%B8%80%E6%94%AFandroid-app%E7%A8%8B%E5%BC%8F%E6%95%99%E5%AD%B8