Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I spent about one day to configure the new gmaps <a href="http://en.wikipedia.org/wiki/Application_programming_interface" rel="nofollow noreferrer">API</a> (Google Maps Android API v2) on the Android emulator. None of the methods of those I found on the Internet was working correctly for me. But still I did it. Here is how:</p> <ol> <li>Create a new emulator with the following configuration:</li> </ol> <p><img src="https://i.stack.imgur.com/8lzjm.png" alt="Enter image description here"></p> <p>On the other versions I could not configure because of various errors when I installed the necessary applications.</p> <p>2) Start the emulator and install the following applications:</p> <ul> <li>GoogleLoginService.apk</li> <li>GoogleServicesFramework.apk</li> <li>Phonesky.apk</li> </ul> <p>You can do this with following commands:</p> <p>2.1) <code>adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system</code><br> 2.2) <code>adb shell chmod 777 /system/app</code><br> 2.3-2.5) <code>adb push Each_of_the_3_apk_files.apk /system/app/</code></p> <p>Links to <a href="http://www.dropbox.com/sh/20hcf8kxdk19z3c/Ukc8uGnk7p" rel="nofollow noreferrer">download APK files</a>. I have copied them from my rooted Android device.</p> <ul> <li><a href="http://www.dropbox.com/s/lfde3juixuy88rg/GoogleLoginService.apk" rel="nofollow noreferrer">GoogleLoginService.apk</a></li> <li><a href="http://www.dropbox.com/s/9kurwyhbbuecaea/GoogleServicesFramework.apk" rel="nofollow noreferrer">GoogleServicesFramework.apk</a></li> <li><a href="http://www.dropbox.com/s/9x8924gtb52ksn6/Phonesky.apk" rel="nofollow noreferrer">Phonesky.apk</a></li> </ul> <p>3) Install <em>Google Play Services</em> and <em>Google Maps</em> on the emulator. I have an error 491, if I install them from <em>Google Play</em> store. I uploaded the apps to the emulator and run the installation locally. (You can use <code>adb</code> to install this). Links to the apps: </p> <ul> <li><a href="http://www.dropbox.com/s/koo4wiwqg8agy8n/com.google.android.apps.maps-1.apk" rel="nofollow noreferrer">Google Maps</a></li> <li><a href="http://www.dropbox.com/s/bh058hbrelccfsr/com.google.android.gms-2.apk" rel="nofollow noreferrer">Google Play services</a></li> </ul> <p>4) I successfully run a demo sample on the emulator after these steps. Here is a screenshot:</p> <p><img src="https://i.stack.imgur.com/CcAyn.png" alt="Google Maps"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload