Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force android to install app on internal memory

Tags:

android

I've an app that i download from private server, it installs ok on most phones but i'm having problems installing it on a HTC Desire C. The phone has no sdcard present. I've searched around and found a manifest setting that should hint at internal storage or say that there is at least no preference to where the app is installed.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.carefreegroup"
    android:versionCode="1"
    android:versionName="1.0"
    android:installLocation="auto" >

This does not work however.

How can i tell android that the app MUST be installed on the internal memory

Thanks Matt

like image 760
turtleboy Avatar asked Dec 27 '22 10:12

turtleboy


1 Answers

set in Manifest

android:installLocation="internalOnly"

this will install app in internal storage and will not install it at all if there is no space in internal memory

http://developer.android.com/guide/topics/manifest/manifest-element.html

like image 181
Calvin Avatar answered Jan 14 '23 20:01

Calvin