[Android] copies external files to sdcard on AVD Android simulator, and browses sdcard files in AVD,

Source: Internet
Author: User

[Android] copies external files to sdcard on AVD Android simulator, and browses sdcard files in AVD,

First, you must set the size of the sdcard before starting your AVD Android simulator, for example. At the same time, your AVD Android simulator must be in the startup status. Otherwise, you cannot perform the following operations.


Here, we will use adt-bundle to easily set up the Android development environment and Hello world in Windows (click to open the link) as an example of the Android development environment installed in Windows.

1. Copy external files to sdcard on AVD Android Simulator

1. After AVD is successfully started, Open the DDMS interface of eclipse through Window> Open Persperctive> DDMS. DDMS does not bring it in the upper right corner of Eclipse at the beginning.


2. Select a running device and switch it to the File Explorer view. The single-host mnt-> sdcard folder is not the sdcard folder under the root directory, all Android users in the sdcard folder under the root directory know that it is just a shortcut. Then, the two buttons in the upper-right corner to export files from the AVD sdcard card to windows/Linux are your current operating system, and the import files from your current operating system to the AVD sdcard are activated. Export from left to right.


Click Import to select the file you want to import. Only one file can be imported at a time ......

2. Browse sdcard files in AVD

1. No sdcard file browser is provided for the device created by AVD ...... I don't know what I think. AVD does not have its own dial-up or file browser. I am now buying a Yuan Chinese god machine on the side of the road, fifty thousand native PSP running Android systems all have sdcard files in browsers. This is, you have to install an ES file on the web browser AVD. I won't sell advertisements for the ES file browser app here. I know it basically when I have played android. Open the command line and enter adb to test whether the command has been added to the environment variable. If yes, it will swallow a large part of English.


Nothing, especially the android development environment that uses adt-bundle. basically, you can configure the folder where adb.exe is located to your system variables or user variables. For details, refer to [Linux] setting environment variables (click to open the link)

At the same time, copy the downloaded Android ES file browser app to this folder and name it a short name to facilitate command line installation.


2. Enter e: In the command line, because the directory where es.apk folder is located is on the edisk, then press "cd E: \ Program Files \ adt-bundle-windows-x86_64-20131030 \ sdk \ platform-tools", here E: \ Program Files \ adt-bundle-windows-x86_64-20131030 \ sdk \ platform-tools is too long you can completely copy in Windows Explorer, and then right-click and paste in the command line. Enter the directory and enter the following command:

adb install es.apk

Wait for the installation. My machine is useless here. It takes half a minute to complete the installation ......

Now you start to find that your AVD has an elasticsearch browser.

To learn the adb operation simulator, you need to install these useful apps. Do not install other apps irrelevant to development. Too many apps in AVD will crash.


3. Open the ES file browser in AVD, and you will find the file you copied from the operating system, waiting for you ......


Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.