Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9034035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:23:02+00:00 2026-06-16T08:23:02+00:00

What is the best way to support both android map apis in my application

  • 0

What is the best way to support both android map apis in my application ?

Google released the android google map api v2 while the v1 is still around (and works better for older phones).

So far, I see two scenarii.

1) Two apks : one apk for each api

I could use the multiple apk feature available in google play.

  • How would I do the distinction on google play ? On the opengl support ?

This scenario means that each time I want to build my project, I have to copy/paste some files, update others which could be cumbersome.

Unless I use a tailored build process (Using ant or maven).

  • Any recommendation on that matter ?

2) One apk

That one could be achieved using if/else statements, including in the manifest file the declaration for both the apis.

  • Has anyone ever tried this ?

Note : Google maps for older phones

First, the new v2 api is vector based which is heavier on the CPU/GPU (the v1 api used bitmap tiles).

Second, the new v2 api requires opengl 2.0. Which is said to be supported in all Android device running froyo or later.
Unfortunately, this is not true.

For example, a venerable HTC magic running gingerbread (on a custom rom) is not recognized by the google play/market to support opengl 2.0.

And maybe there are more of them…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T08:23:03+00:00Added an answer on June 16, 2026 at 8:23 am

    That one could be achieved using if/else statements, including in the manifest file the declaration for both the apis.

    Well, you cannot have “if/else statements” in the manifest.

    There are basically three scenarios from my standpoint:

    1. The device does not have OpenGL ES 2.0 or higher
    2. The device does have OpenGL ES 2.0 or higher but does not presently have the Google Play Services (possibly because it does not have the Play Store)
    3. The device has OpenGL ES 2.0 or higher and has Google Play Services

    As you note in your comment on another answer, my Scenario #1 cannot co-exist with the other two, simply because you must have the <uses-feature> element calling for OpenGL ES 2.0. And, since the Play Store does not support multiple APK files based on OpenGL ES API level, you cannot support Scenario #1 and the other two scenarios at the same time for the same Play Store listing. You would have to have two completely separate apps in the Play Store: one that only uses Maps V1 that works on all Android devices and one that uses Maps V2 (falling back to something else, like Maps V1, for my Scenario #2) that works on OpenGL ES 2.0+ devices.

    Also, bear in mind that Maps V1 API keys are not going to be available after 3 March 2013. Doing Maps V1 development after that point gets increasingly risky, as you have no way of getting fresh API keys should something go wrong with your development environment.

    Basically, what this means is that developing apps dependent upon Google Maps sucks in new and interesting ways, compared to the way it sucked before. Even if you say that you will abandon Maps V1 outright, there are the devices that fall into my Scenario #2. Hopefully, there are not that many, though there definitely are some (such as an HTC EVO 3G sitting near me). There should be no such devices running Android 3.0 and higher — I’m pretty sure that OpenGL ES 2.0 was a hard-and-fast requirement for Android 3.0, and the Play Store should be on all of those devices (and, hence, Google Play Services should be available for all of them).

    Frankly, the best answer for some developers will be to dump Google entirely with respect to maps and use OpenStreetMap or something else that has greater stability, if they want to support Android 1.x/2.x devices.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering what is the best way to support audio/video chat on a
Best way to match 2 pages for Google analytics. Pages to Query: 1.) this_google.html
I'm curious about the best practice in creating web services which support both XML
I'm working on an application that will support both english and arabic languages. The
I have been developing an application to target Android API level 10. When i
What is the best way to support two views over the same data, with
what is the best way to find out whether the current device supports a
postgres 9.2 supports json columns. what would be best way to extend postgres to
The best way I think to explain this is to tell you what my
The best way to explain my problem is by a example. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.