', both forms being equivalent. For example, to launch
the AVD named 'foo', type:
emulator @foo
The 'android' helper tool can be used to manage virtual devices.
For example:
android create avd -n -t 1 # creates a new virtual device.
android list avd # list all virtual devices available.
Try 'android --help' for more commands.
Each AVD really corresponds to a content directory which stores
persistent and writable disk images as well as configuration files.
Each AVD must be created against an existing SDK platform or add-on.
For more information on this topic, see -help-sdk-images.
SPECIAL NOTE: in the case where you are *not* using the emulator
with the Android SDK, but with the Android build system, you will
need to define the ANDROID_PRODUCT_OUT variable in your environment.
See -help-build-images for the details.
这样就差不多了,先试试看。
-------------------------------------------------------------------
还行,不错
android create avd -n hello -t 1
emulator @hello
就可以启动了
只是启动有些慢,我还以为程序死了呢。试了下一些基本功能,我的天啊,这手机也太厉害了吧。。。。有钱了我也买一个,呵呵。
-------------------------------------------------------------------
上面的方法建立的 avd 在 ~/.android 目录下,可是只是一个 virtrul device, 不是用来写程序的。
仔细看了看 android -h 的输出,原来是用 android create project 来建立项目。这个命令还是需要好多参数的,我做测试就用
android create project -k cn.cublog.drunkedcat -n hello2 -a test1 -t 3 -p test1
这几个还都是必须的参数的,
-k 是 package
-n 是项目名称,这个可选
-a 是 activity 的名字
-t 是 target id, 这个不知道是干什么用的
-p 是项目放的位置,找个地方放就是了
如何写程序和生成可用的模块呢?后面再接着学。