ACTION_TIME_TICK for every Second required.

by Ravi » Fri, 26 Jun 2009 18:47:12 GMT


Sponsored Links
 ACTION_TIME_TICK occurs every minute. I need an action which will
occur every second because I'm trying to display the 'Seconds' needle
in AppWidget.

Do help me even if it means modifying the framework source code.

ACTION_TIME doesn't occurs & it's docs are not clear.
--~--~---------~--~----~------------~-------~--~----~



ACTION_TIME_TICK for every Second required.

by Peli » Fri, 26 Jun 2009 19:19:31 GMT


 why don't you simply write a service and send your own broadcast
intent as often as you want?

Peli
www.openintents.org



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


ACTION_TIME_TICK for every Second required.

by Jeff Sharkey » Mon, 29 Jun 2009 13:56:32 GMT


 Implementing a clock widget with seconds as an AppWidget would be
/extremely/ inefficient.  The update code would be creating a new
RemoteViews object, and marshaling it across two IPC boundaries every
second.

The best way to write something like this would be to integrate it
directly into a custom home screen, so you could bypass the IPC costs
and only invalidate when the home activity is actively being shown.

j






-- 
Jeff Sharkey
jshar...@android.com

--~--~---------~--~----~------------~-------~--~----~



ACTION_TIME_TICK for every Second required.

by Ravi » Mon, 29 Jun 2009 21:21:02 GMT


 HTC Hero phone is able to display Analog Clock with Seconds Hand. Is
it done thro flash player or by changing Android Source code?




--~--~---------~--~----~------------~-------~--~----~