[android-developers] Re: Internet for the App

2011-03-22 Thread Christopher Marchfelder
Thank you very much :)

On 22 Mrz., 15:18, Kostya Vasilyev kmans...@gmail.com wrote:
 Chris,

 Look up ConnectivityManager, it broadcasts events when this happens.

 And the good old IOException is of course there as well :)

 -- Kostya

 22.03.2011 17:01, Christopher Marchfelder пишет:

  Hello Folks,

  I hope you can help me with a special problem I have. The android app
  I am developing requires the internet for every activity (data will be
  submitted to the server). My question is: how can I get notified
  when the connection breaks down/gets up again? Is there any good
  solution?

  Thank you.

 --
 Kostya Vasilyev --http://kmansoft.wordpress.com

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Internet for the App

2011-03-22 Thread Lance Nanek
I think there's a sticky broadcast intent for that:
http://developer.android.com/reference/android/net/ConnectivityManager.html#CONNECTIVITY_ACTION

Although I've only ever used ConnectivityManager#getActiveNetworkInfo
and then isConnectedOrConnecting on that for an immediate check...

On Mar 22, 10:01 am, Christopher Marchfelder
marchfel...@googlemail.com wrote:
 Hello Folks,

 I hope you can help me with a special problem I have. The android app
 I am developing requires the internet for every activity (data will be
 submitted to the server). My question is: how can I get notified
 when the connection breaks down/gets up again? Is there any good
 solution?

 Thank you.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en