Installing app on memory card by default

Add following line in manifest file of your android app.Your app will install in memory card by default

Add only this line:
android:installLocation="preferExternal"
and permission
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>


eg-
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.arjun.Medic" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".MedicActivity" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name =".add"></activity> <activity android:name =".history"></activity> </application> </manifest>

Comments

Popular Posts