Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
300 views
in Technique[技术] by (71.8m points)

android - Google maps SDK with new Intel Atom x86 emulator

Is there any way, how to get new x86 image for Android emulator working with Google Maps SDK?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

First, make sure you follow the instructions to enable virtualization support for the emulator. If you don't, everything will work fine except you won't see a performance improvement:

http://developer.android.com/guide/developing/devices/emulator.html#vm-windows

Then follow these instructions to create an Android 2.3.3 AVD with Google Maps support, with corrections and thanks to http://38911bytes.blogspot.de/2012/03/how-to-use-google-maps-api-in-android.html:

  1. In Android Virtual Device Manager create an AVD with target "Google APIs (Google Inc.) - API Level 10"
  2. emulator -avd name_of_avd
  3. adb pull /system/etc/permissions/com.google.android.maps.xml
  4. adb pull /system/framework/com.google.android.maps.jar
  5. (optional) Remove the AVD you just created in the Android Virtual Device Manager
  6. In Android Virtual Device Manager create an AVD with target "Intel Atom x86 system Image (Intel Corporation) - API Level 10"
  7. emulator -partition-size 1024 -no-snapshot-save -avd name_of_avd
  8. adb remount rw
  9. adb push com.google.android.maps.xml /system/etc/permissions
  10. adb push com.google.android.maps.jar /system/framework
  11. Download mkfs.yaffs2.x86
  12. adb push mkfs.yaffs2.x86 /data
  13. adb shell
  14. cd /data
  15. chmod 777 mkfs.yaffs2.x86
  16. ./mkfs.yaffs2.x86 /system system.img
  17. exit
  18. adb pull /data/system.img (...be patient)
  19. Copy system.img into the avd directory for the avd you just created (likely in ~/.android/avd/name_of_avd.avd/)
  20. Reboot emulator

You're done! You can use essentially the same instructions using the new ICS (4.0.3) image if you want to use Google Maps on ICS.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...