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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:42:39+00:00 2026-05-30T00:42:39+00:00

Many features in Android require a uses-permission to be set in the manifest. These

  • 0

Many features in Android require a uses-permission to be set in the manifest. These values then determine what devices will see them in the Market. However, what should be done if the feature is optional… if it could be made to run on many devices, but would require the permission only on a few?

An example: let’s say an app with multiple features and a good amount of content–and it provides a button to call the company. That’s a nice convenient feature, as opposed to writing down the number or copying and pasting it into the phone app. It’s not essential, however.

If that feature is used and the telephony permission is added to the app, then that’s all well and good for phones–but no tablet would see the app in the Market.

What is a general solution for this problem?

Multiple apps could be made with different permissions, but there’s a world of problems with that approach (extra development time, difficulty of keeping maintenance consistent, reviews and ratings split across different apps, and if there are several different types of optional permissions than a different app may be needed for each combination).

The app could programmatically check if the feature is available and enable it or disable it depending on the device. The problem with that is that if the app doesn’t have the permission, then it will crash if it tries to use that feature–and if it does have the permission, some devices won’t be able to find the app in the Market.

In certain cases, it may be possible to cut out nonessential features from the app entirely to avoid the issue. That’s not a great solution either, since those features WOULD be “nice to have” on devices that support it.

Yes, I am aware Is it possible to have "optional" permissions in Android? is a similar question. I’m hoping for newer information and for other workarounds people have found, if any… what is the solution to this issue? Does anyone have other approaches besides the ones I’ve listed above?

  • 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-30T00:42:40+00:00Added an answer on May 30, 2026 at 12:42 am

    What is a general solution for this problem?

    For that specific problem, add <uses-feature android:name="android.hardware.telephony" android:required="false"/> to your manifest, to indicate that this feature is optional. You can then use PackageManager and hasSystemFeature() to determine if a device has the non-required feature at runtime.

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

Sidebar

Related Questions

Speech recognition is one of the many features of my current project which will
The app I'm working on has 4 tabs, 3 of which share many features,
I have created a great stand-alone web form in asp.net utilizing many jQuery features
Many programming languages share generic and even fairly universal features. For example, if you
Possible Duplicate: New Cool Features of C# 4.0 Hello, There are several(many) questions at
Many journals require submission of a blinded version of your paper. The blinded version
Currently I'm working on an app for Android phones. We want to detect features
I'd like to use the method profiler to see how many times particular methods
TortoiseHg is superior to TortoiseGit in many features. Would be a matter of changing
I've been using Dreamweaver for a long time but it has many features I

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.