Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application can't be moved to SD card

Tags:

android

I have put the following in AndroidManifest.xml as described in the article:

<application android:name="MyApp" ... android:installLocation="auto">
    ...
</application>

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="8" />

but the Move to SD card is remaining disabled for my application (other installed applications on my phone can be successfully moved to SD card). What's wrong with it?

like image 719
Andrey Novikov Avatar asked Jan 25 '11 21:01

Andrey Novikov


People also ask

Why can I not move apps to SD card?

Developer Choice. Developers of Android apps need to explicitly make their apps available to move to the SD card using the “android:installLocation” attribute in the <manifest> element of their app. If they don't, the option to “Move to SD card” is grayed out.

Why won't my files move to my SD card?

Check if your SD card is recognized. If the SD card isn't recognized in Settings: Remove and reinsert the SD card. If the SD card is recognized in Settings but not in Files by Google: The SD card may be formatted as internal storage. Learn how to format an SD card as a portable storage.


1 Answers

Just tried this. You have the line inside the appliction tag. Agreed it doesn't work. The article shows it as part of the manifest tag like:

<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.nbt.keypad"
    android:versionCode="1"
    android:versionName="1.0"
    android:installLocation="auto">

Then it works for me.

like image 190
NickT Avatar answered Sep 22 '22 16:09

NickT