O'Reilly logo

Appcelerator Titanium Smartphone App Development Cookbook - Second Edition by Jason Kneen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required