Reputation: 21
I already build my app but just realize that the app its heavy so i wanted to know how could i make all my been install in the Sd Card.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"
package="com.Travel"
android:versionCode="1" android:versionName="1.00B1">
<uses-sdk android:minSdkVersion="8" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:resizeable="true"
android:anyDensity="true"/>
<activity android:name=".Travel"
android:label="@string/app_name" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Thanks!!!!
Upvotes: 2
Views: 343
Reputation: 13960
From the official documentation:
Modify your manifest file this way:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"
... >
This will only work on devices running Android 2.2 or higher.
Upvotes: 3