Planet of NCCUCS

Creating an Android Project without Eclipse

作者:Anderson on 九月 2, 2008 Posted in RSS | | 觀看文章來源

Eclipse 是android推薦的開發環境,但是在linux久了,前輩一直說一定要自己手動做一遍才會知道到底做了哪些事情。於是也跟著看了

google android 說明文件中的
Developing Android Applications with Other IDEs and Tools

android提供了一個好用的tool : activitycreator
可以用來幫助建立build.xml(for ant)。
以android sdk 裏面的sample Snake為例:
在tool目錄下執行activitycreator


./activityCreator.py --out ../samples/Snake com.android.snake.Snake

接著就是直接下ant 指令就可以在Snake/bin目錄下產生 Snake-debug.apk。
把Snake-debug.apk 複製到 tool 目錄下,就可以利用adb install 安裝進去模擬器啦。(別忘了要先開模擬器才能安裝唷@@)

:,

讀過本文的讀者, 也對以下文章有興趣

No comments for this entry yet...

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

最新文章

照片

R0012028R0012036R0013553R0013551R0013550R0013549R0013560R0013558R0013569R0013561R0013570R0013571R0013580R0013581R0013556R0013567R0013563R0013572R0011783R0012312