yes
use the sqlite database as a cache. the content provider contacts the server
for data if there are no data stored in the sqlite database. make sure you
use asynchron list adapter so that the activity doesn't block...

2011/6/21 Sivaprakash <sivaprakashshanmu...@gmail.com>

> Thanks !!
>
> So, when ever I get data back from back end server it has to be persisted
> in local storage (SQLite) and through content provider only I should access
> is that correct approach ?
>
> - Siva
>
> On Sat, Jun 18, 2011 at 6:41 PM, jjoe64 <g.jjo...@googlemail.com> wrote:
>
>> yes.
>> if you do a query on your content provider (though listview/adapter or
>> manually with content resolver), it returns only a cursor (pointer) to the
>> data, that's the reason why the memory space is saved and performance will
>> increase.
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>>
>
>
>
> --
> - Prakash.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to