Tuesday, January 8, 2013

Re: [android-developers] Maps API v2 and WRITE_EXTERNAL_STORAGE permission

I think it's definitely option 3, as everything appears to work but I then live in fear that it can die at any random point in the future.

I think I'll give the client the option with a strong opinion that they really should include it and if they take the risk to exclude that is up to them!

Cheers,

Jamie

On Tuesday, January 8, 2013 12:28:12 PM UTC, Mark Murphy (a Commons Guy) wrote:
I haven't tried withholding that permission. You are welcome to give
it a shot. I see three possible outcomes:

1. You crash immediately, just as you will if you do not have the
<uses-feature> element for OpenGL ES 2.0, as Maps V2 checks some of
this stuff as part of its initialization.

2. You crash almost immediately, when Maps V2 goes to store data on
external storage and fails due to not having the permission.

3. You succeed today, but will still have the possibility of #1 or #2
in future updates to the Play Services library.

On Tue, Jan 8, 2013 at 3:58 AM, Jamie <jamie....@gmail.com> wrote:
> The official documentation for MAPS API v2 states the following:
>
> Besides permissions required by other parts of your application, you must
> add the following permissions in order to use the Google Maps Android API:
>
> android.permission.INTERNET Used by the API to download map tiles from
> Google Maps servers.
> com.google.android.providers.gsf.permission.READ_GSERVICES Allows the API to
> access Google web-based services.
> android.permission.WRITE_EXTERNAL_STORAGE Allows the API to cache map tile
> data in the device's external storage area.
>
> My client has requested that we do not use the WRITE_EXTERNAL_STORAGE
> permission. So my question is, is it really true that this permission is
> mandatory when using the Maps V2 API and will bad things happen if I don't
> include it? Since the mapping functionality is not a key feature of the
> application I am more than happy to take any hit with regards to lake of map
> cacheing.
>
> Many thanks,
>
> Jamie
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-d...@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Localized Android Question-and-Answer Sites: http://www.andglobe.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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment