Every app in android has separate process. By-default same android app components runs in same process.
Consider for ex. if App1 started then it will start in Process1, similarly App2 has Process2. Then if I start service from App1 it will start into its process i.e. Process1.
I have one library with one background unbounded service. Through that service I am doing the CRUD operations in SQLite database file.
So for we have Process1(with its background Service1) and Process2(with its background Service2).
My question is How to make this SQLite database access Process-safe/Thread-safe(which runs in different Main thread by-default). The most searches are fails to explain how to handle this, please guide me in correct way.
mercredi 27 mai 2015
Android access SQLite database from multiple process through service
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire