This is a bit of a rant... I would have expected to see an API to gives me a single YES/NO answer if there is currently network connectivity.
boolean isThereNetwork() But unless I am blind, I have to get the ConnectivityManager object and query it. And furthermore, I must specify a permission ACCESS_NETWORK_STATE to do so. I am sorry, but this is taking the permissions a bit far -- I can understand having the permission if you want to find out all kinds of stuff about the network, but simply to check the connectivity status should have no security implications. Unless, again, I am missing something. This came up for me in the context of the LVL stuff -- I want to skip the LVL check if there is no network connectivity -- but alas, I cannot do this as I don't want to pollute my app with yet another permission just for the LVL. So I have to do the LVL library connect and basically wait 10 seconds for it to tell me that it couldn't reach the LVL server. One would think the LVL library would check for the connectivity state before trying to connect, but that would be too simple, I suppose. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

