Android simulators use sdcard

Source: Internet
Author: User

The project uses a large dB file, which is developed by the simulator in the early stage. Therefore, we want to push the db to the sdcard and then read it:

The procedure is as follows:

1, run-> cmd-> E:-> Cd E: \ Pd \ android-sdk_r18-windows \ tools

2. emulator mksdcard 1024 M sdcard. img

3. Start the simulator (loading sdcard boot): emulator-AVD Android-emulator-2.3.3-sdcard. img

4. Switch to the platform-tools directory and create a new folder on sdcard: CD ..> Cd platform-tools> ADB shell> # ls> Cd sdcard> mkdir Database

5. Jump out of shell command mode (CTRL + V)

6. Push file: ADB push D: \ backup \ Android-workspace \ com.xxxx.cn \ assets \ dB \ XX. DB/Sdcard/Database/Hz. DB

OK. The file size is about 30 mb, so it is slow. Just wait patiently!

Note:

There are many sayings on the Internet directly after the second part: emulator-sdcard *. IMG. I seem to have a problem here. The solution is to replace it with 3. The effect is the same.

In addition, run the ADB shell command to create the mkdir XXX folder. Of course, you must use CD to switch to the required path.

Prompt when there is pushADB push, failed to copy 'file _ path' to 'path': Read-Only file system, which is actually followed by a backslash "/"

 

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.