I have a requirement where in i need to updated my widget once in every 15 seconds. There is a method called android:updatePeriodMillis
but that seems to be getting fired only after 30 minutes.
I took an approach of updating my Widget with the help of AlarmManager
. The widget updates but the issue is it slows down the performance of the device. When the AlarmManager
of my application runs on the background i could see a big delay on the device to respond to user events. Is it wise to have a widget that updates frequently?
Is it the recommended approach to update the widget..or can any one provide me some code samples or any application where the update happens frequently?.
Why is that the android:updatePeriodMillis
is set to 30 mins?. Is it because Android does not want us to update a widget before that time interval?