applications and databases

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

applications and databases

Postby georpapa » Mon Oct 12, 2009 2:47 pm

Hello,

i would lke to know if each application has its own database tables.

i mean if i create an application with the NotesDbAdapter.java from the notpeda tutorial

and then i create a new application with the same NotesDbAdapter.java and the only change i do is to change the
fields of the table. for an example i add 2 collumms.
(offcourse i create again the NotesDbAdapter.java in the src files, with the changes i want)

Then each application uses its own table?

I ask that, because i create 2 applications with the same NotesDbAdapter.java but with some small changes in the table to fit to my needs.

This will have any impact to my apps? or it will be all ok?
georpapa
Freshman
Freshman
 
Posts: 9
Joined: Tue Oct 06, 2009 7:22 pm

Top

Postby nmc » Mon Oct 12, 2009 9:31 pm

AFAIR the notes example creates its database in the phones memory (not on sd-card that is); if this is true, the db gets created in the apps private folder (each installed app has its own folder), so yes, you can reuse the code for all your projects without collisions.
nmc
Senior Developer
Senior Developer
 
Posts: 154
Joined: Thu Nov 27, 2008 8:30 pm
Location: Germany

Postby georpapa » Tue Oct 13, 2009 6:36 am

mmm ok ty

i read an article somewhere about that question i had and i saw that its app has its own private database :)

ty for reply
georpapa
Freshman
Freshman
 
Posts: 9
Joined: Tue Oct 06, 2009 7:22 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Google [Bot] and 3 guests