Use SD card in Google Android Simulator

Source: Internet
Author: User
Use SD card in Google Android Simulator

From the perspective of this document, the android simulator allows us to use a disk image in the FAT32 format as a simulation of the SD card. Today, I tried to record the process and share it with you:
1. Go to the tools subdirectory under the android SDK directory and run
Mksdcard-l sdcard 512 M/your_path_for_img/sdcard. img
In this way, a m SD card image file is created.

2. Specify the path when running the simulator (note that the full path is required ):
Emulator-sdcard/your_path_for_img/sdcard. img
In this way, the path "/sdcard" can be used in the simulator to point to the simulated SD card.

So how do I copy local files to the SD card or manage the content on the SD card?
A. in Linux, We can mount a loop device and create a directory, such as android_sdcard, and then execute:
Mount-o loop sdcard. IMG android_sdcard
In this way, the directory is used to manage the sdcard content.

B. in windows, we can use mtools for management or android SDK commands (this command can also be used in Linux ):
ADB push local_file sdcard/remote_file

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.