scheduling alarm for every second in android 5.1

后端 未结 7 2235
醉梦人生
醉梦人生 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.

提交回复
热议问题