Question

I'm trying to use google maps in my android application. Therefore, I have 2 projects. One is my android app and another will be the google-play-services. How can I export the apk so that it is bundled together with the google-play-services?

Was it helpful?

Solution

Unfortunately, I don't think it's possible to bundle the actual Google Play services APK as part of your app. From the official docs:

To test your app when using the Google Play services SDK, you must use either:

  • A compatible Android device that runs Android 2.3 or higher and includes Google Play Store. Or...
  • The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher.

You can, however, check if Google Play services are available and do an action based on the result (in your case, link them to the store where they can download it) by calling isGooglePlayServicesAvailable() as described here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top