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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:34:45+00:00 2026-05-22T16:34:45+00:00

For the past few months, I’ve been developing an Android app against Cupcake (Android

  • 0

For the past few months, I’ve been developing an Android app against Cupcake (Android 1.5, API Lvl 3), and everything is working quite well (overall it is a fairly simple app).

However, recently I noticed there are two things that I would like to do:

  1. Restrict permissions to only use Internet (with API Lvl 3, it uses 2 other permissions despite only defining the Internet permission in the manifest xml)
  2. Let users move the app to SD card/external storage

Both these changes are really simple – couple of lines in AndroidManifest.xml

The solutions I found are:

  1. To restrict permissions, add: <uses-sdk android:minSdkVersion="4"/>
    http://developer.android.com/guide/topics/manifest/uses-sdk-element.html
  2. To allow users to move app to SD card, add (to the manifest tag): android:installLocation="auto"
    http://developer.android.com/guide/topics/manifest/manifest-element.html

However, solution for #1 requires API Lvl 4 (Android 1.6) and solution for #2 requires API Lvl 8 (Android 2.2)!

So does it mean that if I want both #1 and #2 as listed above, my app will only be compatible with Android 2.2+ ?

Or, is there a way to have multiple AndroidManifest.xml files for the one project? (I know the actual code for the app works for Android 1.5 and seems a waste to exclude them simply for a couple of extra lines in the manifest file)

Thanks!

  • 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-22T16:34:45+00:00Added an answer on May 22, 2026 at 4:34 pm

    Adding android:installLocation="auto" will not adversely effect backward compatibility — it will just be ignored by older versions of Android.

    Setting <uses-sdk android:minSdkVersion="4"/> will prevent the app from being installed or displayed on the Market on Android 1.5 devices, however. That is its whole purpose.

    If you need to have a different set of permissions for different SDK versions, you would unfortunately need two separate projects and two separate Market listings. You could prevent the Cupcake version of your app from displaying for newer devices by adding android:maxSdkVersion="3" to the <uses-sdk> tag.

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

Sidebar

Related Questions

I have been working in android for past few months. The problem for me
I've been developing a webapp using Linq to NHibernate for the past few months,
For the past few weeks I have been working on an app that uses
I've been curious in the past few months in trying my hand at doing
I have just started learning NHibernate. Over the past few months I have been
My Delphi installation has been going downhill for the past few months. It seems
I've been reading a lot on TDD over the past few months and decided
For the past few months I've been learning and coding successful apps and websites
I have been using Grails for the past few months and I really like
I've been using Git for the past few months and love it. I looked

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.