0% found this document useful (0 votes)
31 views

Sqlite

SQLite is an open source database that is embedded into Android. It supports SQL syntax, transactions, prepared statements and requires little memory. SQLite supports the data types TEXT, INTEGER, and REAL. All other types must be converted before saving. SQLite does not validate data types written to columns. SQLite is available on all Android devices and does not require setup or administration - developers just need to define SQL statements. The SQLite database is automatically managed by Android and accessing it can be slow, so database operations should be performed asynchronously. By default, an SQLite database is saved in the DATA/data/APP_NAME/databases/FILENAME directory.

Uploaded by

Aiswariya R
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Sqlite

SQLite is an open source database that is embedded into Android. It supports SQL syntax, transactions, prepared statements and requires little memory. SQLite supports the data types TEXT, INTEGER, and REAL. All other types must be converted before saving. SQLite does not validate data types written to columns. SQLite is available on all Android devices and does not require setup or administration - developers just need to define SQL statements. The SQLite database is automatically managed by Android and accessing it can be slow, so database operations should be performed asynchronously. By default, an SQLite database is saved in the DATA/data/APP_NAME/databases/FILENAME directory.

Uploaded by

Aiswariya R
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

SQLite is an Open Source Database which is embedded into Android.

SQLite supports standard relational database features like SQL syntax, transactions and prepared statements. In addition it requires only little memory at runtime (approx. 250 KByte). SQLite supports the data types TEXT (similar to String in Java), INTEGER (similar to long in Java) and REAL (similar to double in Java). All other types must be converted into one of these fields before saving them in the database. SQLite itself does not validate if the types written to the columns are actually of the defined type, e.g. you can write an integer into a string column and vice versa. SQLite in Android SQLite is available on every Android device. Using an SQLite database in Android does not require any database setup or administration. You only have to define the SQL statements for creating and updating the database. Afterwards the database is automatically managed for you by the Android platform. Access to an SQLite database involves accessing the filesystem. This can be slow. Therefore it is recommended to perform database operations asynchronously, for example inside the AsyncTask class. If your application creates a database, this database is by default saved in the directoryDATA/data/APP_NAME/databases/FILENAME. The parts of the above directory are constructed based on the following rules. DATA is the path which theEnvironment.getDataDirectory() method returns. APP_NAME is your application name. FILENAME is the name you specify in your application code for the database.

You might also like