Top "Android-sqlite" questions

Android uses SQLite to store and retrieve data persistently.

why we need to onUpgrade(); method in SQLiteOpenHelper class

I m following this tutorial.http://www.androidhive.info/2011/11/android-sqlite-database-tutorial/ can any body please make me clear this chunk of …

android database sqlite android-sqlite sqliteopenhelper
Save data in activity's onDestroy method

I'm writing a tasklist and have Project object, which holds all the tasks (and metadata). I use action log, so …

android android-service android-sqlite ondestroy
SQLiteReadOnlyDatabaseException: attempt to write a readonly database (code 1032)

So in some rare instances, I'm seeing the "attempt to write a readonly database" message, and I can't figure out …

android sqlite android-sqlite
Why does insertWithOnConflict(..., CONFLICT_IGNORE) return -1 (error)?

I have an SQLite table: CREATE TABLE regions (_id INTEGER PRIMARY KEY, name TEXT, UNIQUE(name)); And some Android code: …

android android-sqlite
Sugar ORM just won't create tables

I am working on a standalone library project that requires persisting a simple model. Here is what my SugarRecord looks …

android sqlite android-sqlite android-testing sugarorm
SQLiteDiskIOException with error code 10: disk I/O error

I moved an SQLite database to an SD card, but sometimes it will throw the following exception: android.database.sqlite.…

android android-sqlite
ActiveAndroid Update() query

I'm trying to make a bulk update to a column using ActiveAndroid. Here's my code: new Update(SomeModel.class).set("…

android android-sqlite activeandroid
How to get last inserted row id from sqlite in phonegap android

I am creating an app in which i am inserting a data in the table. After inserting the data in …

cordova android-sqlite lastinsertid
How to store the audio/Video file to SQLite database in android.?

Am new to developing, am successfully store the images to database by converting the images in to bytes array and …

android sqlite android-sqlite sqliteopenhelper android-database
Accessing the database of one application from another application

I've built an application and now I want to copy the database of that running application using my new backup …

android android-sqlite android-database