简体   繁体   中英

ACTION_TIME_TICK broadcast every second?

Can we use ACTION_TIME_TICK broadcast every second? like TIME_TICK please help

"android.intent.action.TIME_TICK" is a system generated broadcasted action that indicates the current time has changed. It's sent every minute. You can not receive this through components declared in manifests, only by exlicitly registering for it with Context.registerReceiver(). This is a protected intent that can only be sent by the system.

No you can not do this.

"android.intent.action.TIME_TICK" this broadcast action only be sent by the system and it's sent every minute.

You can start a service and define a action broadcast , then send it every second by yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM