Use of Android Simulators
I. 90-degree rotation Simulator
Shortcut Key:CTRL + F11 or Ctrl + F12
2. Install APK in the simulator
Run the simulator first. Otherwise, the following error occurs:Error:
Device not foundAfter the simulator is started, the terminal runs platform-tools/ADB:
ADB install xxx.apk (XXX is the APK path)
If the error message "failure [install_failed_already_exists]" is prompted during installation, it indicates that the installation has been completed. You need to uninstall it first. The uninstallation is simple and you can uninstall it in the simulator:Settings --> applications --> Manage applications
In addition, if you run: ADB shell, it will enter the root directory of the simulator as root, which is the same as the Linux Command Line Method ~~
Paste a picture, Hoho ~~ (The Linux simulator still has a point card, but it is much smoother than Windows ~~)
3. Use the SD card in the simulator
To the tools directory,
./Mksdcard-l sdcard 512 M sdcard. img
In this way, a m SD card is created. In the SDK graphical interface, click "edit" and select the previously created SDK card sdcard from SD cards. IMG can be used in the simulator: settings --> storage.
4. transfer files to the simulator
CD platform-Tools
. /ADB push XXX sdcard/# XXX is the file to be added to the SD card (there must be a final "/"; otherwise, the system will prompt: failed to copy 'xxx' to 'sdcard ': is a directory)
Note: If the read-onlyfilesystem error is returned, run ADB.
The remount command.
How can I view the file I just added?
./ADB Shell# Enter the simulator Terminal
CD sdcard
Ls# We can see that our file is pressed!
You can also do this:
./ADB Shell# Enter the simulator Terminal
Mkdri sdcard/MP3
Exit
./ADB push XXX sdcard/MP3
First, push a music or image file to the SD card of the simulator;
Music files:
Simulator --> main menu --> Dev
Tools --> media plugin. After finishing, you can find it in the main menu --> music. You can play the video directly in the simulator ~~
Image files:
Simulator --> main menu --> Dev
Tools --> media repository. After finishing, you can find it in the main menu --> gallery. You can directly open it in the simulator ~~
Done!