I have not looked at Bump's API. I'll assume those permissions are
truly needed by the Bump API and not just for some sample app.

Off the cuff, the solution for Bump is to:

-- use PackageManager#checkPermission() to figure out if the app has
those permissions (probably requires you to supply the package name as
a parameter to some Bump constructor)
-- offer a set of methods to indicate which Bump features are
available given the current permission state
-- fail fast if a needed permission is missing from some API method

None of this requires changes to Android or the SDK. It would,
however, require changes to Bump. I'll need to do some tests and write
up more about this technique in the future.

On Sun, Aug 29, 2010 at 8:31 AM, Zsolt Vasvari <zvasv...@gmail.com> wrote:
> On a somewhat related note, I decided I would try to integrate the
> Bump functionality into my app -- some users asked for ways to
> exchange transactions between phones in the family, and this seemed
> pretty good.
>
> But then I opened the docs and here it what it says:
>
> Add
>
> <uses-permission
> android:name="android.permission.ACCESS_FINE_LOCATION" />
> <uses-permission
> android:name="android.permission.ACCESS_COARSE_LOCATION" />
> <uses-permission android:name="android.permission.INTERNET" />
> <uses-permission android:name="android.permission.VIBRATE" />
> <uses-permission android:name="android.permission.READ_PHONE_STATE" />
>
>
> No freaking way I will pollute my permission requirements with that
> stuff.  If I saw a personal fianance app ask for those permissions,
> I'd hit cancel so fast, it wouldn't know what happened.
>
> I don't know what the solution is, but this is just wrong.

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

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9
Available!

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to