The SD card directory in Genymotion is viewed in Eclipse and created SDcard

Source: Internet
Author: User

Today's Android program in Google's own version of the AVD4.4 run, where the SD card directory in the/storage/sdcard/, but Ah, their own machine does not give the power to start a little more than 5, the programmer's time is valuable, 5 points can knock dozens of lines of code, So just cut back to eclipse and write the code side and wait for it to start up, but there's something hanging behind it, and the code is always thinking about it. No, and then I can't stand it, so I started using the Genymotion simulator.

The next step is to find the Android Genymotion emulator's SD card directory.

This simulator said really is the start fast, and the real machine is not much difference, the operation is very smooth, but today do homework to the SD card to put a file, and then read, I will find Ah, find, not open is not (at that time no net), the whole class is asking me O_o!, where is the SD card directory? Asked me one afternoon, I will go to the dead. Finally I went through the catalogue of the original simulator provided by Google ....

Hey? The back seems to point to a directory, I went to find/mnt/shell/emulated/0

wow~ good familiar directory. Unfamiliar classmate can open the Android emulator file Manger App inside is these directories, SDcard directory is/shell/emulated/0/;

Then you can add files to it, and it's convenient to read the files or whatever.

Adding a file here does not have permission issues, and basically does not add a failure.

Of course, it is more convenient to use the code to determine the SD card directory is there:

File sdcard = Environment.getexternalstoragedirectory ();

Returns a file object that can be used to know the path to the sdcard by printing the Sdcard.tostring () method.

Then sometimes you need to create a new SD card, or edit the SD card but the Genymotion console cannot edit these properties, and you need to open Oracle VirtualBox to modify some of the advanced properties of the SD card and emulator.

After opening, select the emulator you want to edit (which you have already run), it will show some information about the simulator

Then right-click Set (Settings), select Storage, open to see, there are SDCARD.VDI (this is the default) and then you can edit the new things that are messy ~

The SD card directory in Genymotion is viewed in Eclipse and created SDcard

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.