开发者

How's the android directory structure?

H开发者_JAVA百科ow the directories are disposed? Where do I copy my musics and pictures in my virtual device to test my apps?

update: trying with mTools....

update: mtools fails... cant download it to virtual device..

update: I entered the internet on the Android's virtual device, tried to save an image, and it says that "An SD card is required". I thought I've read in the android.developers.com that the device has a SD card by default.. Anyway, I'll look for how to create it..


In the latest SDK (API level 8, equalling 2.2), you use Environment.


Usually, music and pictures will live anywhere in the /sdcard folder. Keep in mind that not all handsets provide an SD Card.


If you do want to try to use an emulated sdcard, then you have to use the mksdcard utility. It's covered here:

http://developer.android.com/guide/developing/tools/othertools.html#mksdcard

You'll want to create an avd that points to the .img file you created. Once the avd is started, you can then use adb push to put files on it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜