Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

thread in java

//if your project supports java8, you can implement with lambda function
//for android
new Thread(() -> {
        // do background stuff here
        runOnUiThread(()->{
            // OnPostExecute stuff here
        });
    }).start();
Source by devarama.com #
 
PREVIOUS NEXT
Tagged: #thread #java
ADD COMMENT
Topic
Name
3+7 =