On 03/22/2011 10:16 AM, Igor Nesralla Ribeiro wrote:
Hi,
I'm a newbie on Android dev. But I want to know what the best way to storage
data on android....file or SQLite because...i want to save a list of
restaurants with street address, Lat and long, and pictures...and update it
over internet....
I had simple data requirements, but decided to go with SQLite because
I'm capable with SQL. Little by little I started adding a table here,
and a table there for things that I hadn't expected to need to store.
Now I'm very glad that I chose SQLite, although it's not trivial to
set up. Just take the example code and build from there. As a side
note, I made a class that provided me with low level access stuff to
make life easier. For example:
String[] firsts = db.column("select first from rolodex");
I have many wrappers like that that make life *much* easier.
Then I sublcass that with a class that has higher level things, say:
Registrant dude = dbi.getRegistrant(34254);
Or:
dbi.markPaid(dude)
You get the idea.
I haven't used Content Providers, but I definitely recommend that
you check them out. I have the impression that they provide something
like a database without as much technical setup. Others will know
better.
Tobiah
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en