Dim ctxt As JavaObject
ctxt.InitializeContext
Dim jo As JavaObject
jo = jo.InitializeStatic("com.google.android.gms.common.GoogleApiAvailability").RunMethodJO("getInstance", Null)
Dim status As Int = jo.RunMethod("isGooglePlayServicesAvailable", Array (ctxt))
Hi @Ohanian
In this code:
I have this error in the last rowB4X:Dim ctxt As JavaObject ctxt.InitializeContext Dim jo As JavaObject jo = jo.InitializeStatic("com.google.android.gms.common.GoogleApiAvailability").RunMethodJO("getInstance", Null) Dim status As Int = jo.RunMethod("isGooglePlayServicesAvailable", Array (ctxt))
#AdditionalJar: com.google.android.gms:play-services-base
'************ Google Play Services Base ************
AddApplicationText(
<activity android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="false"/>
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
)
'************ Google Play Services Base (end) ************
https://developers.google.com/android/reference/com/google/android/gms/common/ConnectionResult