[android-developers] Re: Android 3.1 & DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN behavior

2011-08-24 Thread ydanneg
Seems like something broken in 3.X. DeviceAdminAdd activity is launched in new task by default. Here is the activity stack log (Samsung Galaxy Tab, GT-P7510, Android 3.1, build: HMJ37.UEKF3): Running activities (most recent first): TaskRecord{40ae51f8 #52 I com.android.settings/.DeviceAdminAd

[android-developers] cursor.requery() in non-UI thread: CalledFromWrongThreadException

2010-11-29 Thread ydanneg
Hello team, I have ListView with the attached CursorAdapter. For known reasons I want to call cursor.requery() on non-UI thread (using AsyncTask) but it fails with the CalledFromWrongThreadException. As I understand the adapter tries to update UI from the thread where requery() method was called.