Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. package com.legalimpurity.asynctaskwrittenfromscratch
  2.  
  3. import android.util.Log
  4. import com.legalimpurity.asynctaskwrittenfromscratch.MyAsyncTaskCode.MyAsyncTask
  5.  
  6. class MyAsyncTaskImpl : MyAsyncTask()
  7. {
  8. val LOG_TAG = "MyAsyncTask_Logs"
  9.  
  10. override fun doInBackground() {
  11. Log.d(LOG_TAG,"doInBackgroundCalledOn: "+Thread.currentThread().name)
  12. }
  13.  
  14. override fun onPreExecute() {
  15. Log.d(LOG_TAG,"onPreExecuteCalledOn: "+Thread.currentThread().name)
  16. }
  17.  
  18. override fun onPostExecute() {
  19. Log.d(LOG_TAG,"onPostExecuteCalledOn: "+Thread.currentThread().name)
  20. }
  21.  
  22. }
Add Comment
Please, Sign In to add comment