0

I'm wondering what would be the best way to implement isSupported() method in air native extension which utilizes android maps v2.

I know that MapFragment.getMap() returns null if Google Play Services is not installed, but this can be checked only after fragments onCreateView() has been called. I would need to check whether device supports the maps before I show map on stage.

Is that possible and if yes, what would be the best way?

Jens Erat
  • 37,523
  • 16
  • 80
  • 96
tihomir
  • 258
  • 1
  • 10

1 Answers1

0

You may try using GooglePlayServicesUtil.isGooglePlayServicesAvailable.

MaciejGórski
  • 22,187
  • 7
  • 70
  • 94
  • Thanks, I found that my self at some point (this is an older question), but it is a good answer so I'll accept it. Cheers – tihomir Apr 27 '13 at 13:25
  • @tica It's a good practice to self-answer your questions and accept them, so others having similar problems can benefit. – MaciejGórski Apr 27 '13 at 13:30