Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move an app to sd card

I currently have an Android App "Gurbani Ujagar" in Playstore. I have over 1430 HTML files that loads on request and sometimes it takes more than 3-4 sec to load the file. I have received couple comments telling me to make it moveable to SD card. I am not quite sure how that would make any difference and how would I go on solving that issue.

like image 790
ivesingh Avatar asked Jan 27 '26 11:01

ivesingh


2 Answers

Just add the following line to your Manifest.xml and everything works great:

android:installLocation="preferExternal"

That means users can move the app to their sdcard/external storage and your app would prefer it to store your app their, if available.

Pretty simple and should solve your problem ;)

The difference: your app does NOT consume valuable internalStorage (especially on older devices) and your users can save some space.

like image 77
Thkru Avatar answered Jan 29 '26 23:01

Thkru


As i can understand from what you say You can try this(worked on my 4.1.2 android device):

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.ex"
    android:versionCode="4"
    android:versionName="1.3" 
    android:installLocation="auto"> //Change to auto

Just change it to autoand it will work fine Sorry for my poor engish Best regards:)

like image 41
noobProgrammer Avatar answered Jan 30 '26 00:01

noobProgrammer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!