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 "/"