ContentProvider or SQLite ?

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

ContentProvider or SQLite ?

Postby IHeartAndroid » Fri Oct 23, 2009 11:00 am

Hello,

I am trying to implement some kind of caching mechanism for complex data like images or xml files.

Since BLOB is not supported in Androids SQLite I have two options:

1)
ContentProviders

2)
Download and save the files to the file system. Writing the path of the file and some additional data
to a simple SQLite database using Strings and Longs etc.


I don't need to share data accross my application, so ContentProvider is not necessary. However I am not sure if its still a better idea to use ContentProvider because of performance or [give me your reason]
User avatar
IHeartAndroid
Junior Developer
Junior Developer
 
Posts: 24
Joined: Wed Jul 08, 2009 8:51 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 6 guests