scheduling alarm for every second in android 5.1

后端 未结 7 2186
醉梦人生
醉梦人生 2020-12-05 20:04


I want to run alarm service for every second in my application.It is working fine below 5.1 version. but it is not triggering in 5.1 devices. I am using commonsware wa

相关标签:
7条回答
  • 2020-12-05 20:45

    I dont exactly understand your use case but setting alarm for every second is overkill. You can use Timer. Take a look into this class.

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