By default, there is no market in the android simulator, so by default, there is no way to download rich software from the market in the simulator. So we need to find a method to install it on the simulator.
First, prepare three market-related APK files.
Googleservicesframework.apk download link http://download.csdn.net/source/3266099
Vending.apk download link http://download.csdn.net/source/3266202
Marketupdater.apk download link
Http://download.csdn.net/source/3266206
After preparing the three APK files
The installation procedure is as follows:
1. Create the android simulator googledroid2.2.avd and select SD card support.
2. Set the android SDK to the system on the API platform. imgfile (for example, my file is: D:/Android/Java/SDK/Android-SDK-Windows/platforms/Android-8/images/system. IMG) copy to the created simulator directory (for example, my
C:/Documents ents and
Settings/Administrator/. Android/AVD/googledroid2.2.avd ).
3. Open the command line and switch to the SDK's tools directory (if you have added the path to the system path, you can execute it in any directory ), add the parameter "-partition-size 100" to start the VM. The parameter means to allocate MB space for system/data so that there is sufficient space to install the market software.
D:/Android/Java/SDK/Android-SDK-Windows/tools/emulator.exe
-AVD googledroid2.2.avd-partition-size 100
4. Enable the checkin service for Android
To use Android Market properly, you must start the checkin service. After the Android 2.2 virtual machine is started, you can see the normal interface.
In this case, we can retrieve the configuration file build. Prop and edit it.
This file is obtained through file explorer in ddms of Eclipse.
In this way, build. Prop is placed in the SDK tools directory and opened with text editing software such as emeditor and ultraedit. Comment out "#" before "Ro. config. nocheckin = yes" (usually the last and third lines in the file.
# Ro. config. nocheckin = Yes
Then upload it to the android virtual machine, restart the virtual machine, and the checkin service starts (before uploading, run the "ADB remount" command to make the/System Directory Writable ).
ADB remount
ADB push build. Prop/system/build. Prop
5. Install "Android Market" to the Virtual Machine
Put the three prepared apps in the/system/APP/directory.
6. Clean up the site
Shut down the virtual machine, delete the generated image: userdata-qemu.img, userdata. IMG, cache. IMG, and restart the virtual machine it will automatically initialize.
7. Restart the simulator.
You can see the Android Market
After logging on with your Google account, you can search for the app to download it.
If the connection is faulty
You can modify the hosts file.
127.0.0.1 localhost
74.125.93.113 android.clients.google.com
It is estimated that the reason for the Jingdezhen Wall
Compared with the actual market, there are still a lot fewer programs to connect to the Android Market in this way, but it is only used for experience. I don't know if there is a way to achieve the same effect as on the mobile phone. If anyone can contact my mail exchange zylucifer@gmail.com
This article address http://blog.csdn.net/Zengyangtech/archive/2011/05/17/6427364.aspx
Reprinted please note