Send data from Service to Widget on Android.
        Posted  
        
            by Jose Vega
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jose Vega
        
        
        
        Published on 2010-04-28T04:36:03Z
        Indexed on 
            2010/04/28
            4:43 UTC
        
        
        Read the original article
        Hit count: 320
        
I am writing a widget on Android 1.6 that shows the minutes that a person has used on the current month. The way I have it setup is by having a service that listens to the state of the phone and when the phone is picked up, it starts the timer and when the person hangs up, ends a timer. I would like to send this variable(long duration) over to my appWidgetProvider so I could update the edit text on it.
© Stack Overflow or respective owner