Single Database for different applications

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Single Database for different applications

Postby AndreySerj » Thu Nov 20, 2008 5:23 pm

Hi All,
I have 3 different applications: 1,2,3.
Application-1 creates its own database.
Can the other applications: Application-2, Application-3 access that database (with was created by Application-1) if they know database name ?
Can some way to share the single database with different independent applications ?
AndreySerj
Developer
Developer
 
Posts: 31
Joined: Wed Dec 26, 2007 9:57 am
Location: Minsk

Top

Postby MrSnowflake » Thu Nov 20, 2008 5:59 pm

I don't know if you can just access an apps database (read: I don't know if it's possible to make a world readable/writable database). But the solution Android gives you, is using ContentProviders. Those are the things which are designed to handle data access from other tasks.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby AndreySerj » Fri Nov 21, 2008 7:59 am

Thanks MrSnowflake for prompt. I'll try to implement it for my case
AndreySerj
Developer
Developer
 
Posts: 31
Joined: Wed Dec 26, 2007 9:57 am
Location: Minsk

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 5 guests