O'Reilly logo

Flash Development for Android Cookbook by Joseph Labrecque

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

Providing a default application database

Allowing the user to add and remove items from an application database, directly or indirectly, can be very useful in all sorts of scenarios. Perhaps though, we want to start the user out with a standard data set, or maybe provide some default settings for the user to manipulate down the road? These scenarios call for the ability of the application to provide itself with a default database. In this recipe, we will demonstrate how to handle this intelligently through the file system.

Getting ready...

In this recipe, we will be bundling an already established SQLite database file within our application directory. If you do not have access to a SQLite database file already, you can either use some of the other ...

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