Why is this simple service not starting?

前端 未结 5 1263
伪装坚强ぢ
伪装坚强ぢ 2020-12-15 02:13

I have a service with a handler that has to write \"Hello\" in the logcat every 5 seconds. But it doesn\'t write nothing on the logcat... It\'s like the service is not execu

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 03:00

    Very important: write the name space correctly, for example:

    
    

    in my AndroidManifest.xml previously it was (wrong):

    
    

    No service started and no error message!

提交回复
热议问题