Thank you Donmanfred for you simple answer, with my surprise on a real device MapFragment1.IsGooglePlayServicesAvailable return true
Does this mean that emulator can't be used to debug apps that use Google Api?
I was hoping I could test the app on different versions of andorid just using the emulator.
Now I have another problem, I get a blank screen.
this is my Log there is a strange error invalid APIKey.
--------- beginning of /dev/log/system
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.RuntimeException: Unable to pause activity {com.technosoft.O2Finder/com.technosoft.O2Finder.main}: java.lang.RuntimeException: API key not found. Check that <meta-data android:name="com.google.android.geo.API_KEY" android:value="your API key"/> is in the <application> element of AndroidManifest.xml
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3196)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3151)
at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3129)
at android.app.ActivityThread.access$900(ActivityThread.java:159)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1327)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: API key not found. Check that <meta-data android:name="com.google.android.geo.API_KEY" android:value="your API key"/> is in the <application> element of AndroidManifest.xml
at com.google.maps.api.android.lib6.drd.q.b
com.google.android.gms.dynamite_dynamitemodulesb@12685003@12.6.85 (000306-197041431):40)
at com.google.maps.api.android.lib6.auth.e.a
com.google.android.gms.dynamite_dynamitemodulesb@12685003@12.6.85 (000306-197041431):11)
at com.google.maps.api.android.lib6.impl.e.a
com.google.android.gms.dynamite_dynamitemodulesb@12685003@12.6.85 (000306-197041431):4)
at com.google.android.gms.maps.internal.b.a
com.google.android.gms.dynamite_dynamitemodulesb@12685003@12.6.85 (000306-197041431):24)
at com.google.android.gms.maps.internal.CreatorImpl.a
com.google.android.gms.dynamite_dynamitemodulesb@12685003@12.6.85 (000306-197041431):69)
at com.google.android.gms.maps.internal.CreatorImpl.newMapFragmentDelegate
com.google.android.gms.dynamite_dynamitemodulesb@12685003@12.6.85 (000306-197041431):32)
at com.google.android.gms.maps.internal.i.onTransact
com.google.android.gms.dynamite_dynamitemodulesb@12685003@12.6.85 (000306-197041431):31)
at android.os.Binder.transact(Binder.java:347)
at com.google.android.gms.internal.maps.zza.transactAndReadException(Unknown Source)
at com.google.android.gms.maps.internal.zzf.zzc(Unknown Source)
at com.google.android.gms.maps.MapFragment$zzb.zzc(Unknown Source)
at com.google.android.gms.maps.MapFragment$zzb.setActivity(Unknown Source)
at com.google.android.gms.maps.MapFragment$zzb.zza(Unknown Source)
at com.google.android.gms.maps.MapFragment.onAttach(Unknown Source)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:862)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1075)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1057)
at android.app.FragmentManagerImpl.dispatchPause(FragmentManager.java:1874)
at android.app.Activity.performPause(Activity.java:5472)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1250)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3182)
... 12 more
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
The Api Key I put in Manifest is the same I get from google Play developer platform, "AIzaSyC.......".
Where I'm Wrong?