Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to listen for SQLite database changes in android

Tags:

android

I'm using SQLite database in android and want to listening for any database changes. How can I do this?

Thanks for all future help!

like image 411
jk_qq Avatar asked Jun 12 '14 17:06

jk_qq


People also ask

Where SQLite database is stored in Android?

The Android SDK provides dedicated APIs that allow developers to use SQLite databases in their applications. The SQLite files are generally stored on the internal storage under /data/data/<packageName>/databases.

Is SQLite thread safe Android?

In this mode, SQLite can be safely used by multiple threads provided that no single database connection is used simultaneously in two or more threads. Serialized. In serialized mode, SQLite can be safely used by multiple threads with no restriction.


1 Answers

In fact, SQLite offers such functionality: SQLite Data Change Notification Callbacks

How it can be used in Android is another story though..

like image 104
riot_starter Avatar answered Sep 23 '22 09:09

riot_starter