Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-23 Thread Piren
As Mark said, the default behavior for ASyncTasks since HC is to run in a serialized form... I've seen so many apps being updated to "support" ICS just to have users complain that suddenly the app is very slow (not sure why the devs didnt notice this during the QA phase, but it happens). On

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-23 Thread Piren
I will look into that, thanks On Monday, October 22, 2012 7:59:12 PM UTC+2, Kristopher Micinski wrote: > > On Mon, Oct 22, 2012 at 3:48 AM, Piren > > wrote: > > Why do you prefer ASyncTasks to Loaders? Since they are handicapped in > ICS, > > isn't it better to stop using them? > > > > Why d

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-22 Thread ncdroid
Thanks again for sharing your experience and guidance on this subject Mark. After getting lost in the documentation for so many hours, nice to have this communicated in such matter of fact language. On Monday, October 22, 2012 4:54:10 PM UTC-4, Mark Murphy (a Commons Guy) wrote: > > On Mon, Oc

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-22 Thread Mark Murphy
On Mon, Oct 22, 2012 at 4:25 PM, ncdroid wrote: > Thanks a lot for your feedback Mark. Do you have a rule of thumb you apply > to decide on AsyncTasks vs Loaders? For example, if you expect something to > take less than x mins, use AsyncTask, otherwise use a Loader? CursorLoader and my loaders

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-22 Thread ncdroid
Thanks a lot for your feedback Mark. Do you have a rule of thumb you apply to decide on AsyncTasks vs Loaders? For example, if you expect something to take less than x mins, use AsyncTask, otherwise use a Loader? On Sunday, October 21, 2012 5:36:10 PM UTC-4, Mark Murphy (a Commons Guy) wrote:

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-22 Thread Kristopher Micinski
On Mon, Oct 22, 2012 at 3:48 AM, Piren wrote: > Why do you prefer ASyncTasks to Loaders? Since they are handicapped in ICS, > isn't it better to stop using them? > Why do you think they're "handicapped?" ... That doesn't make any sense. kris -- You received this message because you are subscr

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-22 Thread Mark Murphy
On Mon, Oct 22, 2012 at 3:48 AM, Piren wrote: > Why do you prefer ASyncTasks to Loaders? Greater flexibility. > Since they are handicapped in ICS, > isn't it better to stop using them? Since they are not handicapped in ICS, they are perfectly fine to use. In fact, CursorLoader uses AsyncTask un

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-22 Thread Piren
Why do you prefer ASyncTasks to Loaders? Since they are handicapped in ICS, isn't it better to stop using them? On Sunday, October 21, 2012 11:36:10 PM UTC+2, Mark Murphy (a Commons Guy) wrote: > > On Fri, Oct 19, 2012 at 8:13 PM, ncdroid > > wrote: > > Can someone please answer definitively f

Re: [android-developers] To ContentProvide Sqlite DB or Not

2012-10-21 Thread Mark Murphy
On Fri, Oct 19, 2012 at 8:13 PM, ncdroid wrote: > Can someone please answer definitively for me the following: > > Are ContentProviders required to use Loaders w/Sqlite? No. If you really want to use loaders with SQLite directly, I have a SQLiteCursorLoader that works without a ContentProvider:

[android-developers] To ContentProvide Sqlite DB or Not

2012-10-21 Thread ncdroid
Group: I am very confused about the need to wrap a ContentProvider around a sqlite db if the db is to only be used locally. I have no plans to expose the data in my sqlite db to any other app. The quote on the following page would indicate a cp is not necessary if the data is only to be acces