pefect, thx.
On Sep 25, 4:05 pm, Al <[email protected]> wrote:
> You need android.permission.MODIFY_AUDIO_SETTINGS.
>
> From AudioService.java:
>
> boolean checkAudioSettingsPermission(String method) {
> if (mContext.checkCallingOrSelfPermission
> ("android.permission.MODIFY_AUDIO_SETTINGS")
> == PackageManager.PERMISSION_GRANTED) {
> return true;
> }
> String msg = "Audio Settings Permission Denial: " + method + "
> from pid="
> + Binder.getCallingPid()
> + ", uid=" + Binder.getCallingUid();
> Log.w(TAG, msg);
> return false;
> }
>
> On Sep 25, 11:45 pm, sdphil <[email protected]> wrote:
>
> > I am attempting to enable/disable bluetooth support in my app, like
> > this:
>
> > AudioManager am = (AudioManager) getSystemService
> > (Context.AUDIO_SERVICE);
> > am.setBluetoothA2dpOn(bluetooth);
>
> > ----
>
> > And when I make that call, I get:
>
> > 09-25 22:42:20.290: WARN/AudioService(586): Audio Settings Permission
> > Denial: setRouting() from pid=847, uid=10019
>
> > ----
>
> > In my AndroidManifest.xml file I have this:
>
> > <uses-permission android:name="android.permission.BLUETOOTH"></uses-
> > permission>
> > <uses-permission
> > android:name="android.permission.BLUETOOTH_ADMIN"></
> > uses-permission>
>
> > any ideas?
>
> > tia.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---