I'm attempting to create a Handler thread in my application however Android Studio marks my text as red and will only attempt to import the java.util version of a handler and not the Android SDK version. When attempting to import manually I'm able to find the HandlerThread just fine but the normal handler import seems to be missing.
Any ideas why?
I had to add import android.os.*;
before I could get the android.os.Handler object working in my class.
Just import android.os.Handler, no need to import everything in android.os
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With