Re: [android-developers] Permissions, checking network connectivity and the LVL

2011-06-22 Thread Chris
If the Market App(tm) has NETWORK_STATE permissions, and my app invokes an API that uses it, it stands to reason that my app shouldn't have to request NETWORK_STATE. After all, the user already granted permission to the other app. I haven't yet used LVL but if I came across that scenario I'd f

Re: [android-developers] Permissions, checking network connectivity and the LVL

2011-06-22 Thread Mark Murphy
On Wed, Jun 22, 2011 at 9:11 PM, Zsolt Vasvari 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

[android-developers] Permissions, checking network connectivity and the LVL

2011-06-22 Thread Zsolt Vasvari
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 A