I have a application in which I receieve callbacks from the native layer and based on these callbacks I update the List UI on the screen.
How to I check of the callbacks are being executed in the UI thread only or in a separate thread?
I have a application in which I receieve callbacks from the native layer and based on these callbacks I update the List UI on the screen.
How to I check of the callbacks are being executed in the UI thread only or in a separate thread?
Simple way would be to just see what thread the ui is on with http://docs.oracle.com/javase/6/docs/api/java/lang/Thread.html#currentThread() Then check it again later in the callback.