Search code examples
androidpermissionssd-card

Cannot move an app to the SD card


I am not able to move my own application to the SD card.

My corresponding parts of manifest are as below (I am pasting also what permissions it needs).

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
    android:installLocation="preferExternal"
    android:label="@string/app_name" >

<uses-sdk
    android:minSdkVersion="6"
    android:targetSdkVersion="9" />

I believe I followed guidelines described here: http://developer.android.com/guide/topics/data/install-location.html (compatibility and pemissions). However, during installation (from SDK but also from Android Market) applications lands on internal storage, and I can't move it using "Manage Applications".


Solution

  • try this...

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