Question : thread example in android
Answered by : shashank-mistry
//if your project supports java8, you can implement with lambda function
new Thread(() -> { // do background stuff here runOnUiThread(()->{ // OnPostExecute stuff here }); }).start();
Source : | Last Update : Sat, 09 Jan 21