How to create an SD Card image file for the Androi

2020-03-09 07:38发布

问题:

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 7 years ago.

I need to create an SD Card image file for an Android emulator that I am running. Given that I am a beginner at Android development, a complete step-by-step tutorial would be awesome.

回答1:

There is a command line program for doing that called mksdcard: https://developer.android.com/studio/command-line/mksdcard.html



回答2:

There are already SD Card image files for use with the emulator installed.

If you create an AVD then choose a file path for the SD Card

on My Machine the file path is:

C:\Users\Samir\.android\avd\Android2.2.avd\sdcard

Then, click 'Ok' and save the changes, then this will emulate an SD Card when you run the use the AVD in the Emulator



回答3:

Can someone please tell me how to do that.

In the AVD Manager, when you create an AVD, fill in a positive integer in the "SD Card" field. This is the size of your SD card in MB.



回答4:

When you create a virtual device there is an Option for SD Card : You can select a file where you want ur SD card, or you can also give size for SD card, so that it will create and SD card image for you on the default android emulator location.



回答5:

You can Google search before and find this: http://www.androiddevelopment.org/2008/11/11/how-to-create-and-use-the-sd-card-with-the-android-emulator/