Android Market strips "Move to SD card" attribute -- what am I doing wrong?


Last Updated:

  1. machwh

    machwh Member This Topic's Starter

    Joined:
    May 2, 2010
    Messages:
    12
    Likes Received:
    1
    Hi guys -- I have an app which I'd like people to be able to install
    onto the SD card through Settings->Applications->Manage applications.

    I now have a .apk file that if I install it directly, does allow me to
    do the above, but when I submit it to Android Market and then install
    from there, it doesn't (the option's greyed out for me, and it is for
    others too).

    Any idea what I need to do differently? I guess Market is rebuilding
    the apk and losing the XML attribute along the way, but I can't see
    why.

    Here's my manifest file, which looks fine to me -- so I'm at a loss.
    My eclipse project target SDK version is set to 8 (so that it
    understands the new attribute), and android:minSdkVersion is set to 3
    (as it always has been) -- which is my understanding of how the
    android docs say I should do this :-(

    Thanks in advance,

    Mark

    ---------------------

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    android:versionCode="37"
    android:versionName="2.14" package="com.wheadon.photoenhance"
    android:installLocation="auto">
    <uses-sdk android:minSdkVersion="3" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <application android:icon="@drawable/icon" android:label="@string/app_name"
    android:debuggable="false" >
    <activity android:name=".PhotoEnhance"
    android:label="@string/app_name">
    <intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    <intent-filter>
    <action android:name="android.intent.action.SEND"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.ALTERNATIVE"/>
    <data android:mimeType="image/jpeg" />
    </intent-filter>
    </activity>
    <activity android:name=".Preferences" android:label="@string/setPreferences"></activity>
    <activity android:name=".Crop" android:label="@string/crop"></activity>
    </application>
    </manifest>
     

    Advertisement
  2. machwh

    machwh Member This Topic's Starter

    Joined:
    May 2, 2010
    Messages:
    12
    Likes Received:
    1
    I've found the answer. I'll post it here to help anyone in the future looking for an answer to the same problem:

    Buried in Android Developers Blog: Apps on SD Card: The Details under "Security and Performance Implications" is the following:

    "Copy-protected applications cannot be installed on external media."

    And there you have it -- it's deliberately filtered out for copy-protected apps.

    Cheers,

    Mark
     

Share This Page

Loading...