On Tue, Jul 20, 2010 at 8:24 AM, Alok Kulkarni <[email protected]> wrote: > Thanks for your reply. What i did was i removed the System.gc() as well as > the handler call. > Considering the code from above snippet. > > Log.i("VALUE----->", "Before movetoFirst" + > System.currentTimeMillis()); > mCursor.moveToFirst(); > Log.i("VALUE----->", "After movetoFirst" + System.currentTimeMillis()); > > Output :- > Before movetoFirst 1279628503040 > After movetoFirst 1279628508063 > This clearly shows a difference of 5 seconds.(My emulator is slow.On device > it takes 2 to 3 seconds)
That is to be expected given your query. However, according to you, that is in a background thread. And, according to you, your problem is the UI being blocked. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.1 Available! -- 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

