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. bahasa indonesia di email id-android

halo,

mau tanya,
saya udah set language di google groups ke english.

tapi kenapa kok di email2 yang saya terima (abridged email) kok
bahasanya serba indonesia ya?
ada yg bisa bantu saya gimana caranya rubah supaya bahasa di email
saya jadi bahasa inggris?

-- 
"Indonesian Android Community [id-android]" 

2. mohon bantuanya spica stlh upgrade ke eclair tidak muncul gprs/3g

suhu,

minta tolong dong, barusan gw upgrade ke eclair spica ku dan berhasil
tapi ko ga bisa muncul gprs/3g nya ya? kenapa ya firmware upgrade make
I570EXXJD4..

thanks

-- 
"Indonesian Android Community [id-android]" 

3. kemampuan data dan voice bersamaan di HTC Incredible

4. Merubah Market Supaya Terlihat Semua ( Menjadi T-Mobile)

5. DB Cursor gets reset?

6. setting theme for an activity

7. (WTA) Root HTC desire without goldcard