How Do I Install the Android Market on Android SDK

来源:互联网 发布:苹果下载软件 编辑:程序博客网 时间:2024/05/16 01:56

转自: http://www.tech-recipes.com/rx/10004/accessing-android-market-from-android-sdk/

====================================================

我在Android SDK4.0.3上按照步骤走一遍的结果是安装成功,但是下载失败,不知何故。

另外,如需安装成功,需要在第8步后将临时文件C:\Users\UserName\AppData\Local\Temp\AndroidEmulator\xxx.tmp  替换原有的system.img,并给它命名为system.img。

碰到的几个问题:

1. 运行emulator –avd tech-recipes –partition-size 100 时有out of memory错误

方法:把partition-size 改成250以上

2.  market可以显示,但是下载失败



===========================================


Contributor IconContributed byLê Hoàng Date Icon December 9, 2010  
Tag IconTagged:Internet  
Share

Although the Android SDK is useful for developers, it lacks one important feature–the Android Market. Following these intructions, you can install Android Market. This will allow you to download and test free applications or games with the latest Android 2.3 SDK.

1. Download and install Android SDK. After that, set up a new emulator. (You may want to learnhow to set up an Android Emulator

2. Go to …….\android-sdk_r08-windows\android-sdk-windows\platforms\android-9\images(this is the default folder forSDK Platform Android 2.3, API 9, revision 1), copysystem.img andpaste it to C:\Users\Username\.android\avd\Emulator’s name.avd

3. Download three files: Vending.apk, GoogleServicesFramework.apk and ADB.zip (unzip the file after downloaded). After that, put all these files into…….\android-sdk_r08-windows\android-sdk-windows\tools, we will need them later. (In Android 2.3 SDK, adb files have been removed so that’s why we need them. If you use Android 2.2 SDK, you may not need to download the file)

3. Press Winkey+R, type cmd and press Enter. In command prompt, change the directory to …….\android-sdk_r08-windows\android-sdk-windows\tools(I kept the default folder structure but it is recommended that you change it).

4. Type the following: emulator –avd tech-recipes –partition-size 100 and hit Enter (please replace tech-recipes with your emulator’s name). This command will launch your emulator. Please don’t try to launch it from SDK manager, otherwise, it won’t work.

5. Launch another command prompt window, switch to …….\android-sdk_r08-windows\android-sdk-windows\tools , type in:adb -s emulator-5554 shell and hitEnter

(Please make sure that the emulator is fully loaded, and replace 5554 with your emulator’s serial code which you can find at the top of emulator’s window.) After that, typemountand hit Enter again. You will see something like below, and look for the line:/dev/block/mtdblock0 /system yaffs2 ro 00.


6. Now, type in:  mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system and hitEnter. This will remount the/system in read-write mode. Because we will copy some files to/system/app later, we must set read-write permission to that directory. To do it, type the following:chmod 777 /system/app, hit Enter. After that, you need to exit. Typeexit, hitEnter again. The whole step will look like this:

7. In this step, we will copy two files: Vending.apk and GoogleServicesFramework.apk into /system/app. To do this, from the second command prompt window, type:adb -s emulator-5554 push Vending.apk /system/app/.and hit Enter. Similar to that, to copy the next file, type:adb -s emulator-5554 push GoogleServicesFramework.apk /system/app/. ,hitEnter again. If sucess, it will look like this:

8. Now, you need to remove SdkSetup.apk from /system/app (if it is not removed, the SDK will be restore in next session). In the second command prompt window, type:adb shell rm /system/app/SdkSetup.apk ,hit Enter.

9. Close your emulator.

10. Go to C:\Users\Username\.android\avd\Emulator’s name.avd and delete these two files: userdata-qemu.img and cache.img.Launch your emulator in the normal way and then, you will see Android Market from the list.


Using Facebook:


Note: Some applications and games may not work because they need real hardware. Angry Birds and Youtube are such examples. With these you can hear the sounds but not see any video.

Click here to find out more!

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 脖子黑还有纹怎么办 打印a4不够用怎么办 脸很白脖子很黑怎么办 胖孩子脖子黑怎么办 脖子后面太黑怎么办 脸白脖子黑怎么办 脖子后面很黑怎么办 打印一个字一页怎么办 小黄车没锁被别人骑走了怎么办 幼儿早上不早起怎么办 工作中不细心怎么办 小孩没时间观念怎么办 高中厌学想回家怎么办 一年级孩子不喜欢数学怎么办 孩子做事不细心怎么办 孩子学习不够细心怎么办 孩子不用心学习怎么办? 恋爱中不够细心怎么办 孩子不愿学英语怎么办 孩子不愿学数学怎么办 孩子不愿学钢琴怎么办 小孩子学习不开窍怎么办 一年级没有读好怎么办 小孩眉毛很杂乱怎么办 孩子不好好听课怎么办 成绩差的孩子怎么办 三年级语文太差怎么办? 孩子叛逆不学习怎么办 三年级阅读理解能力差怎么办 孩子静不下心怎么办 孩子体温低于35怎么办 小孩体温突然低怎么办 宝宝35.5度体温怎么办 宝宝出汗体温低怎么办 小孩体温35.2度怎么办 孩子睡觉出冷汗怎么办 小孩感冒发烧咳嗽怎么办 小孩咳嗽出汗多怎么办 小孩手脚出汗多怎么办 小孩感冒出虚汗怎么办 宝宝感冒出冷汗怎么办