myHandler.obtainMessage() is not allowed in Service class in android

后端 未结 1 502
隐瞒了意图╮
隐瞒了意图╮ 2021-01-28 07:32

I am trying to create a service class with a inner class which is a Handler class , unfortunately I am not able to access handler.obtainMessage() in this class .. Can any one gi

相关标签:
1条回答
  • 2021-01-28 08:06

    You've got the wrong Handler class imported. It should be android.os.Handler, not java.util.logging.Handler.

    0 讨论(0)
提交回复
热议问题