How to run my code in a specific thread?
If the "specific thread" is the main ui Thread, I can use the runOnUiThread method.
But the "specific thread" is not ui Thread and the "specific thread" is not made by me.
a "specific thread" is created by some library.
But I can access the "specific thread".
Similarly Thread theSpecificThread = getThread();
How to run my code in a specific thread like runOnUiThread (new Runnable ())?
Changuz
source share