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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:33:09+00:00 2026-05-26T06:33:09+00:00

when I tried to add android:installLocation=auto in my AndroidManifest.xml file I found the following

  • 0

when I tried to add

android:installLocation="auto" 

in my AndroidManifest.xml file I found the following error in eclipse

error: No resource identifier found for attribute "installLocation" in package "android"

how to overcome this problem ?

edited :

My Manifest file is :

<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:installLocation="auto"
    android:versionCode="1"
    android:versionName="1.0" 
    package="com.xxxx.yyyy">

        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

    <application
        android:label="@string/app_name" android:icon="@drawable/icon">

    <activity
        android:screenOrientation="portrait"
        android:name=".StarterActivity"
        android:label="@string/app_name">
        <intent-filter>
            <action
                android:name="android.intent.action.MAIN" />
            <category
                android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
    android:screenOrientation="portrait"
        android:name="GamePlayActivity"></activity>

                <activity
    android:screenOrientation="portrait"
        android:name="LoginActivity"></activity>

                <activity
    android:screenOrientation="portrait"
        android:name="SignupActivity"></activity>

    <activity
    android:screenOrientation="portrait"
        android:name="MainMenuActivity"></activity>
    <activity
    android:screenOrientation="portrait"
        android:name="InfoActivity"></activity>

    <activity
    android:screenOrientation="portrait"
        android:name="ViewScoreActivity"></activity>    



    <activity 
    android:name="com.google.ads.AdActivity"
          android:configChanges="keyboard|keyboardHidden|orientation"></activity>

  </application>
    <uses-sdk
        android:minSdkVersion="7" 
    />


</manifest> 

error is showing in line
android:installLocation=”auto”

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-26T06:33:10+00:00Added an answer on May 26, 2026 at 6:33 am
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
              android:installLocation=["auto" | "internalOnly" | "preferExternal"] >
        . . .
    </manifest>
    
    Introduced in: API Level 8.
    

    Backward Compatibility

    The ability for your application to install on the external storage is a feature available only on devices running API Level 8 (Android 2.2) or greater. Existing applications that were built prior to API Level 8 will always install on the internal storage and cannot be moved to the external storage (even on devices with API Level 8). However, if your application is designed to support an API Level lower than 8, you can choose to support this feature for devices with API Level 8 or greater and still be compatible with devices using an API Level lower than 8.

    To allow installation on external storage and remain compatible with versions lower than API Level 8:

    1. Include the android:installLocation attribute with a value of “auto” or “preferExternal” in the element.
    2. Leave your android:minSdkVersion attribute as is (something less than “8”) and be certain that your application code uses only APIs compatible with that level.
    3. In order to compile your application, change your build target to API Level 8. This is necessary because older Android libraries don’t understand the android:installLocation attribute and will not compile your application when it’s present.

    When your application is installed on a device with an API Level lower than 8, the android:installLocation attribute is ignored and the application is installed on the internal storage.

    Caution: Although XML markup such as this will be ignored by older platforms, you must be careful not to use programming APIs introduced in API Level 8 while your minSdkVersion is less than “8”, unless you perform the work necessary to provide backward compatibility in your code. For information about building backward compatibility in your application code, see the Backward Compatibility article.

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

Sidebar

Related Questions

I have eclipse and android sdk. I have tried to add through Eclipse>Window>Install new
I tried to add a merge strategy to my .gitattributes file in my repository.
I've tried to add the following class to my app: public class AlertDialogHelper {
I tried one simple application in android... to store the database but while add
Using proguard the paypal classes are not found ERROR/AndroidRuntime(3200): Caused by: java.lang.NoClassDefFoundError: com.paypal.android.MEP.PayPal I
I have Created a database in Sqllite Android Application and I tried to add
I created a custom SurfaceView called CaptureView and tried to add it into main.xml
I recently tried to add a new Site/App: Afterwards I choose Android App and
I tried some add to favorties JavaScript scripts.. With IE8, I get an access
I tried to add buttons, textboxes and text to tableview. I want the row

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.