[Android-development] Calling Java in Android UI thread

Eskil Abrahamsen Blomfeldt eskil.abrahamsen-blomfeldt at digia.com
Mon Sep 15 09:30:56 CEST 2014


On 09/13/2014 04:23 PM, Harri Pasanen wrote:
> Hi,
>
> Seems like some Android API functions need to be called in the UI
> thread, even though those are not directly UI related.
> As an example, LoaderManager/CursorLoader combo does not appear to
> co-operate when called from the Qt thread.
>
> Any suggestions on how to queue things from Qt to run in Java main thread?

http://developer.android.com/reference/android/app/Activity.html#runOnUiThread%28java.lang.Runnable%29

-- Eskil




More information about the Android-development mailing list