Discussion Forums  >  Uncategorized

Replies: 2    Views: 131

MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
01/18/12 05:20 PM (12 years ago)

Android to SD Card

I found an article with an easy change to allow your Android apps to be moved to the SD card. Two easy steps, both in Eclipse: 1. Modify the Manifest Edit the AndroidManifest.xml file of the application to add an entry for android:installLocation='auto' to the <manifest> tag: <manifest xmlns:android='http://schemas.android.com/apk/res/android' package='com.PACKAGENAME' android:versionCode='2' android:versionName='1.0.1' android:installLocation='auto'> ... </manifest> The value is set to “auto” so that the user can decide where to install the application. If this value is not present at all, the default behavior is to only allow installation to internal storage and not to give the user a choice. 2. Update the Build Target This only works for BT 1.5 and 2.0 apps. The build target needs to be at least API Level 8, otherwise you’ll get the following error: error: No resource identifier found for attribute ‘installLocation’ in package ‘android’ Now, load the application on a 2.2 device (or emulator). Go to the application management area and you’ll now see that it can be moved to the SD Card! Here's the original article: http://mobile.tutsplus.com/tutorials/android/move-to-sd-card/
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/18/12 05:28 PM (12 years ago)
Awesome tutorial...thanks, MGoBlue! Mark
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/18/12 06:21 PM (12 years ago)
Another possible entrust is 'perferExternal' For those unfamiliar with how buzztouch forum handles double quotes the auto or perferExternal are surrounded by double quotes. Also you can tell when the entry has been done correctly by the color of the letters. Fred
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.