Why is this simple service not starting?

前端 未结 5 1273
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  猫巷女王i
    2020-12-15 02:52

    There are also circumstances where you need to put the "enabled" attribute to "true" when defining it in the manifest, like so:

    
    

    See this link for more info: http://developer.android.com/guide/topics/manifest/service-element.html

提交回复
热议问题