Hi All
I am getting too old for this....I need advise again please.
I have followed Erel's example to the T, but I cannot get the Google Map App to plot.
Here is my code (Erel's code):
I am getting too old for this....I need advise again please.
I have followed Erel's example to the T, but I cannot get the Google Map App to plot.
Here is my code (Erel's code):
B4X:
[/
#Region Project Attributes
#ApplicationLabel: QESS
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
Private rp As RuntimePermissions
End Sub
Sub Globals
Private gmap As GoogleMap
Private MapFragment1 As MapFragment
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
Wait For MapFragment1_Ready
gmap = MapFragment1.GetMap
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
gmap.MyLocationEnabled = True
Else
Log("No permission!")
End If
End Sub
]
Below is my Manifest:
[CODE=b4x][/
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
AddApplicationText(
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="AIzaSyARJ3j5ZiIZFJEGiP_Khbal3Ho-yvoXXXX"/>
)
AddApplicationText(
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
)
]
This is the error code that I get:
[CODE=b4x][/
B4A Version: 11.50
Parsing code. (0.01s)
Java Version: 8
Building folders structure. (0.03s)
Compiling code. (0.02s)
Compiling layouts code. (0.02s)
Organizing libraries. (0.04s)
(AndroidX SDK)
Compiling resources (1.26s)
Linking resources Error
AndroidManifest.xml:28: error: resource integer/google_play_services_version (aka b4a.identity:integer/google_play_services_version) not found.
error: failed processing manifest.
]
Any advise please?
Thanks
Michael