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?




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



Other Threads

1. Why didn't google provide APIs for desktop widgets?

Because it's a hard problem.

JBQ






-- 
Jean-Baptiste M. "JBQ" Queru
Android Engineer, Google.

Please don't contact me directly.

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

2. it seems nobody here answer questions regarding mms

You don't need a Google employee, you should have the full source available
to look at.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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

3. it seems nobody here answer questions regarding mms

4. Universal Media _ID

5. Help me solve my Ambiguity regarding Activity

6. Is animated gif (agif) supported in Android Image View

7. Android stats