4

I've gotten a VM accelerated Android emulator (4.2.2, API 17) working using Intel HAXM (on a Mac). I installed the Google Maps SDK using these instructions, which is basically this answer to a previous SO question - Google maps SDK with new Intel Atom x86 emulator - but with pictures.

Therefore, the emulator has access to Google APIs. However, I need to enable location access for Google apps. This is usually done through the Google Settings app, but since the emulator was created targeted to API 17 (not Google APIs 17), Maps and Google Settings are not installed.

Where can I find the .apk for Google Settings in order to install it? It would be even better if there was a way to permanently keep it on the emulator (so that -wipe-data does not delete it).

(I know I need to enable location access because of a problem I was running into earlier. See my previous question here.)

Community
  • 1
  • 1
rainbowsprinkles
  • 257
  • 5
  • 11
  • have you seen this answer http://stackoverflow.com/questions/14040185/running-google-maps-v2-on-android-emulator – Rohan Kandwal Dec 13 '13 at 20:23
  • 1
    @RohanKandwal Ah, I didn't, thanks! The other answers seem to confirm that Google Apps/Google Play must be installed. I switched to Genymotion, which also doesn't have Google API support, but you can install it using [these instructions](http://stackoverflow.com/questions/17831990/how-do-you-install-google-frameworks-play-accounts-etc-on-a-genymotion-virtu/20013322#20013322). – rainbowsprinkles Dec 16 '13 at 21:11
  • Then either i should provide an answer or you should provide the method you used and then mark the question solved. Should i do it or u? – Rohan Kandwal Dec 17 '13 at 07:30
  • @RohanKandwal Please answer (since my method is a workaround). :) – rainbowsprinkles Dec 17 '13 at 22:16

2 Answers2

5

There is now a new x86 system image available which has the Google APIs. Install it from the SDK manager - it's under API 19 and called "Google APIs (x86 System Image)". Using an emulator created from that image you should find you have all the Google APIs you could previously only get on ARM system images (I have only tested Maps v2 so far, but it worked).

ZoFreX
  • 8,812
  • 5
  • 31
  • 51
0

As per Google Android Map Api v2 ypu can't run it on an Android Emulator; you need a real device to test your apps. To run a app which uses Google Maps v2 you need two applications already running on the device

1. Google Play Services (com.google.android.gms.apk)
2. Google Play Store (com.android.vending.apk)

Follow this guide here to download and install the latest version of these two apk's using adb commands.

Community
  • 1
  • 1
Rohan Kandwal
  • 9,112
  • 8
  • 74
  • 107