Storing your Android app on the device's SD card
Because of the way Titanium compiles code, it can result in application file sizes that are larger than traditional native apps. Even a simple hello world
app could be several megabytes in size.
In this recipe, we will show you how to configure your Android application in order for it to be run on the device's external storage (using a plugin storage card, if available).
How to do it…
Open the tiapp.xml
file under your project's root directory and find the <android>
node in the XML; it will be located near the bottom of the file. Alter the <android>
node so that it looks like the following code:
<android xmlns:android="http://schemas.android.com/apk/res/android"> <tool-api-level>10</tool-api-level> <manifest android:installLocation="preferExternal"> <uses-sdk android:minSdkVersion="10" /> </manifest> </android>
Now build...