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

Creating a local SQLite database

Adobe AIR has had support for embedded SQLite databases from the beginning. This is one of the best ways of storing structured information within our Android applications. SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. The database files it creates are simply individual .db files, which can be transported across a network, copied, and deleted just like any other file type.

How to do it...

We will create a mobile application along with a local SQLite database, which can employ the SQL query language to allow the user access to add new records and run a simple query based upon these entries:

  1. First, import the following classes necessary ...

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