Echoed, but if you really need it, why not, I think this is a case
where asking for the permission is kind of justified.

AdMob also works this way, by doing a check on
Context.checkSelfOrCallingPermission for deciding to use internet or
not, it's a useful trick, but I think if you want to know the
location, not asking for the permission and using something which does
pretty much the same thing (or at least, attempting to do the same
thing) is kind of subversive anyway..

kris

On Tue, Mar 13, 2012 at 10:52 PM, Nikolay Elenkov
<[email protected]> wrote:
> On Wed, Mar 14, 2012 at 11:42 AM, Kristopher Micinski
> <[email protected]> wrote:
>> True, I was working off the map activity assumption.  The IP based
>> lookup approach isn't fundamentally wrong, a good portion of the time
>> you'll be "pretty much right" for the purposes of many applications
>> (location specific ad targeting, etc..).  But if you have finer
>> location why not use it?
>>
>
> Presumably because it requires additional permissions?
> BTW, that's exactly how the browser location API works:
> if you are running on a device with GPS, etc. and
> you grant it permission, it will use that, fallback to IP
>  otherwise (on a desktop machine, etc.).
>
> The page above when opened in Chrome on my GN gets
> my pretty much exact location, Chrome on my computer
> puts me in a completely different part of town (15km away :).
>
> --
> 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

-- 
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

Reply via email to