Hi!
I tried to integrate Google Maps according the "Google Maps Android v2 tutorial". When I run now the example script, the code stops at the line:
with this message:
My manifest.xlm looks like this, there is no <application> element:
What´s wrong with the manifest.file?
I tried to integrate Google Maps according the "Google Maps Android v2 tutorial". When I run now the example script, the code stops at the line:
B4X:
If mFragment.IsGooglePlayServicesAvailable = False Then
.....
B4X:
If mFragment.IsGooglePlayServicesAvailable = False Then
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the <application> element:
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
My manifest.xlm looks like this, there is no <application> element:
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.
SetActivityAttribute(main, android:windowSoftInputMode, adjustResize|stateHidden)
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="AIzXCSyCoV0b80YaSX9GbBVzJocBTJbJXElnfHpw"/>)