On 5 Lug, 17:28, Sarbyn <sar...@gmail.com> wrote:
> Hi!
> I have a class that play a stream from internet, using an AudioTrack.
> I want to route the audio to the speakerPhone, using:
>
> AudioManager am = (AudioManager)
> context.getSystemService(Context.AUDIO_SERVICE);
> am.setSpeakerphoneOn(aActive);
>
> But the permission "<user-permission
> android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>" , in my
> manifest, doesn't work.
>
> LogCat says that
> 07-05 16:20:11.749 1324 1328 W AudioService: Audio Settings
> Permission Denial: setSpeakerphoneOn() from pid=5724, uid=10092
>
> Any idea?
--
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