Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any intent fired every second in Android?

I am looking for some Intent which get broadcasted every second. I looked into android.intent.action.TIME_TICK but this intent get broadcasted every minute. I know AlarmManger/handler/thread can be used for this purpose, but I am inclined to use system broadcasted intent. Please share your thoughts?

like image 865
Rakesh Avatar asked Jan 22 '26 05:01

Rakesh


1 Answers

I do not think so. First because if system would send a broadcast every second it would drain the battery. Second, if many apps were interested in handling the broadcast, that could seriously slow down the system.


Update

There is in fact a Intent fired once a minute, but there is restriction on how you can use it

http://developer.android.com/reference/android/content/Intent.html#ACTION_TIME_TICK

like image 108
André Oriani Avatar answered Jan 24 '26 23:01

André Oriani