Android Question Google maps error B4A v6.50

oscarsarrio

Member
Licensed User
Longtime User
Following the steps of:
https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386



I have a problem with the visualization of the plane. Completely compiles the project but when it reaches the line:

If MapFragment1.IsGooglePlayServicesAvailable = False Then

It directly closes the app, does not give me any error in the log. I've inserted MapFragment1 from the designer.

It seems all right but it does not happen to me there.

Manifest:

AddManifestText (
<Uses-sdk android: minSdkVersion = "14" android: targetSdkVersion = "23" />
<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 (<uses-feature android: name = "android.hardware.location.gps" />)

SetApplicationAttribute (android: label, "@ string / app_name") 'NEW in v3.0 !!!
AddApplicationText (
<Activity android: name = "com.dropbox.sync.android.DbxAuthActivity" />
<Activity
Android: name = "com.dropbox.client2.android.AuthActivity"
Android: launchMode = "singleTask">
<Intent-filter>
<Date android: scheme = "XXXXXXX" /> <! - NEED TO UPDATE ->
<Action android: name = "android.intent.action.VIEW" />
<Category android: name = "android.intent.category.BROWSABLE" />
<Category android: name = "android.intent.category.DEFAULT" />
</ Intent-filter>
</ Activity>
<Service
Android: name = "com.dropbox.sync.android.DbxSyncService"
Android: enabled = "true"
Android: exported = "false"
Android: label = "Dropbox Sync" />
)
AddPermission (android.permission.READ_EXTERNAL_STORAGE)

AddApplicationText (
<Meta-data
Android: name = "com.google.android.geo.API_KEY"
Android: value = "XXXXXXXX" />
)
 

eps

Expert
Licensed User
Longtime User
What version of the google play services have you got installed?

I think my maps is version 2.00 (as indicated in B4A).

Did you add this line?

B4X:
#AdditionalJar: com.google.android.gms:play-services-maps

Although I can't remember now if you do or don't need this line - although it is in my App which works.

I guess you've put in the 'general services' manifest additions as well? from here? https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…