Services and Widgets


Last Updated:

  1. vigge_sWe

    vigge_sWe New Member This Topic's Starter

    Joined:
    Oct 9, 2010
    Messages:
    3
    Likes Received:
    0
    I don't really get how to retrieve the result from a thread to the UI thread so I can set the result in a TextView.

    I want to retrieve items from a feed in an IntentService, then put the results in a TextView on my widget.

    I've tried interface and binding but I don't get it. I've tried AIDL, I somewhat understand it a bit more, but still don't understand it. And it does not seem to work in Eclipse.

    Anyone that could help me/guide me in understanding on how I should retrieve the results?
     

    Advertisement
  2. IanGClifton

    IanGClifton Well-Known Member

    Joined:
    Feb 7, 2010
    Messages:
    111
    Likes Received:
    19
    Take a look at Handler (Handler | Android Developers). Basically, you'll use a Handler to send a Message which will trigger the display on your UI thread.
     

Share This Page

Loading...