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 7637703
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:00:28+00:00 2026-05-31T08:00:28+00:00

I have a large Android application for my company and we heavily use the

  • 0

I have a large Android application for my company and we heavily use the google maps api for display of positions, including an activity using overlays. The problem is now with support of lower end Android tablets. Since the large majority do not support google maps, our app won’t even install on them. Is is possible to tell the manifest to require the google maps api only if it is available on the device? If not available, I would then just disable the mapping features.

  • 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-05-31T08:00:30+00:00Added an answer on May 31, 2026 at 8:00 am

    Is is possible to tell the manifest to require the google maps api only if it is available on the device?

    Yes. Include android:required="false" in the <uses-library> element where you are requesting Google Maps. You can then use reflection to see if, say, MapActivity exists in your Dalvik VM, If it does, you are on a Maps-capable device and can safely launch a map. If it does not exist, you will need to disable your mapping features.

    Here is a sample application demonstrating this, with a MapDetector LAUNCHER activity that sees if MapActivity exists and then either forwards control onto an actual MapActivity implementation or raises a Toast if the app is run on a non-Google Maps device.

    Here is the MapDetector activity implementation from that project:

    public class MapDetector extends Activity {
      @Override
      public void onCreate(Bundle instanceState) {
        super.onCreate(instanceState);
    
        try {
          Class.forName("com.google.android.maps.MapActivity");
          startActivity(new Intent(this, NooYawk.class));
        }
        catch (Exception e) {
          Toast
                .makeText(this,
                           "Google Maps are not available -- sorry!",
                           Toast.LENGTH_LONG)
                .show();
        }
    
        finish();
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my android application I have to show the landscape view for large and
I have a android application, that in theory, would use php as a proxy
I have an Android application which uses the NDK to execute a large amount
I'll try to be brief: In my android application I have a large amount
I have a large data that I have to use in my first android
I am developing an android application in which i have to show large data
I have an android application that begins by downloading a large database to the
I have an Android Application that has four activities. None is very large and
I have a problem in my android application. I use an application which make
I have been tasked with porting a large Java codebase to the Android platform.

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.