multithreading - How to check if callback is executed in GUI Thread: Android -


this question has answer here:

i have application in receieve callbacks native layer , based on these callbacks update list ui on screen.

how check of callbacks being executed in ui thread or in separate thread?

simple way see thread ui on http://docs.oracle.com/javase/6/docs/api/java/lang/thread.html#currentthread() check again later in callback.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -