Everything Motorola Q  
Home Motorola Q Store Moto Q Software News Motorola Q Reviews Moto Q Forums FAQs Wiki Contact Us Everything Q RSS feed


Go Back   Motorola Q Forum | Everything Q > Q Software Developers > Software Developers

Reply
 
Thread Tools Display Modes
Old 01-20-2007, 05:52 PM   #1 (permalink)
 
Join Date: Jan 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
ppcinfo is on a distinguished road
Default How does a Homescreen plugin (like 'MessageCount') know when data has changed?

Question: How do some of the standard plugins on a SmartPhone know when data has changed (so that the plugin can update the info ont the Homescreen)?

For example, when you get a new voicemail or text message, the "MessageCount" plugin on my Moto-Q phone beeps and shows the number of messages. How does this plugin know that the data has changed? I understand that a running external program can make a call to ShOnPluginDataChange() to inform a specific plugin that data has changed, but what if I wanted to write my own plugin that would update the homescreen if I get a voicemail message?

Do I have a timer event running every few seconds in my plugin that checks for updated info? I don't want to do anything excessive and unnecessary if it drains battery power.

Comments and suggestions are appreciated.

ppcinfo
ppcinfo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 10:17 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC8
Integrated by BBpixel Team 2008 :: jvbPlugin R1013.368.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31