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

Apps Widgets and listening to connectivity

Discussion in 'Android Development' started by Gamebrew, Dec 11, 2009.

  1. Gamebrew

    Gamebrew Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Dec 10, 2009

    Dec 10, 2009
    1
    0
    5
    Hi I created a simple news widget, search for "drudge". I based the code from SimpleWiktionary. My phone has no data plan but Wifi works at home. The widget works fine but when the phone sleeps, it turns off Wifi, when you go back on, it tries to reconnect. At that time tho the widget has already run and causes errors because there is no internet at that time.

    Can someone give me specific hints if there is any way I could add a listener to whenever the phone gets on the internet?

    Thanks!
     

    Advertisement

Share This Page

Loading...