1. Download our Official Android App: Forums for Android!

Apps Services and Widgets

Discussion in 'Android Development' started by vigge_sWe, Oct 9, 2010.

  1. vigge_sWe

    vigge_sWe Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    Oct 9, 2010

    Oct 9, 2010
    3
    0
    5
    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
    Rank:
    None
    Points:
    58
    Posts:
    111
    Joined:
    Feb 7, 2010

    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...