Why the Looper.myLooper() is being equal to Looper.getMainLooper() when declaring handler in my own looper thread?
I am trying to learn message handling using Loopers and handlers. In the main activity, on press of start button ,I create and send a message to my MyLooperThread Looper object. This is my main activity code
package com.example.asynctaskdemo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Looper
import android.os.Message
import android.util.Log
import com.example.asynctaskdemo.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity()...