I know where the confusion came from: I didn't mean "library" in sense of a JAR.
On Jun 23, 9:30 am, Zsolt Vasvari <[email protected]> wrote: > LVL is not a jar file, it's a Service you connect to implemented by > the Android Market app. > > On Jun 23, 9:19 am, Mark Murphy <[email protected]> wrote: > > > > > On Wed, Jun 22, 2011 at 9:11 PM, Zsolt Vasvari <[email protected]> wrote: > > > I would have expected to see an API to gives me a single YES/NO answer > > > if there is currently network connectivity. > > > > boolean isThereNetwork() > > > I'd vote for a signature of: > > > boolean iCanHazNetwork() > > > > 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. > > > AFAIK, you are correct. > > > And, FWIW, I agree that there should be such a method and that you > > should not need a permission to use it. > > > > One would think the LVL library would check for the > > > connectivity state before trying to connect, but that would be too > > > simple, I suppose. > > > Then LVL would require you to have ACCESS_NETWORK_STATE. JAR files > > don't magically get permissions separate from the app. > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > > Android Training in London:http://bit.ly/smand1,http://bit.ly/smand2- Hide > > quoted text - > > - Show quoted text - -- 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

