2

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?

Sunny
  • 7,120
  • 21
  • 59
  • 97

1 Answers1

0

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.

Andrew T.
  • 4,402
  • 3
  • 33
  • 50