2011年4月20日 星期三

Adding an SD Card to an existing AVD

You can easily do that manually:
1- find the path where your avd is stored
$ SDK/tools/android list avd
....
Path: /home/user/.android/avd/myAVD.avd
...
2- create an "sdcard.img" in that directory -- that name is the
default and the emulator will pick it up automatically:
$ SDK/tools/mksdcard 16M /home/user/.android/avd/myAVD.avd/sdcard.img
Run mksdcard without arguments to see the options. Size is something
like 128K or 128M.
Note that "list avd" will not display it after (it only displays
what's in the myAVD.avd/config.ini file... you can add a line like
"sdcard.size=16M" if you want "list avd" to show it.

沒有留言:

張貼留言