2010年3月13日 星期六

how to operat eclpise android development platform

http://code.google.com/p/androidbmi/wiki/AndroidUI

have you ever get into an error like this ?

project "XXX" is missing required source folder : "gen" .

on eclipse IDE, just right click and delete "gen" folder in your packaged explorer and build project again. it should fix the problem like this.

android SDK 1.5 project is no problem. but android SDK 2.1 project have problem.

==== question 2 about main.xml .
@string means the "real" string located at strings.xml under values folder

< main.xml >

android:text="@string/hello"

==== 要如何 debug/run android app ?
0.android create avd --target 1 --name eclair
1. android list target
2. android list avd (if it did output something means 模擬器已完成建置)
3.  android delete avd --name XXXXX (刪除某個已經建置的 avd)
4. 移除程式 adb shell,
cd data/app
list (should see something here)
rm com.example.android.apis.apk

5. how to run avd ? please goto eclipse android SDK and AVD manager, pick AVD that you create and click start button to run it.

6. how to run android source code in AVD ? open eclipse project. right click project name, choose run as android application menu

沒有留言:

張貼留言