Android Question problem running google maps sample on AVD

Rovi Cohen

New Member
Licensed User
Longtime User
I am getting "Google Play services not available" when i try and run the code from the google maps android v2 tutorial. The app is working but i cant seem to get the Google map to display.

I copied the google-play-services.jar file to the basic4android/library folder

Here is my manifest file.
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
AddManifestText( <permission
          android:name="$PACKAGE$.permission.MAPS_RECEIVE"
          android:protectionLevel="signature"/>
      <uses-feature android:glEsVersion="0x00020000" android:required="true"/>)
 
AddApplicationText(<meta-data
    android:name="com.google.android.maps.v2.API_KEY"
    android:value="AIzaSyDBtA67EwiC8q0hii_i3NnqYT2hCuZ7TM0"/>
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"
    />)
   
AddPermission(android.permission.ACCESS_NETWORK_STATE)
 

Rovi Cohen

New Member
Licensed User
Longtime User
Sorry about the 2nd post i wasn't sure if the first one was posted to the correct forum.
I did install Google Play Service on the emulator, i even tried using "Google API" as the target for the AVD, as suggested in some online articles.

The emulator works a lot smoother than the bridge to the real device. Do you have any recommendation for getting Google Play Services to work on the emulator before i try on the real device.

Thank you.
 
Upvote 0
Top