Update...

The android.jar (1.6) distributed as part of the Mac Eclipse bundle
doesn't contain the WiredHeadset methods, but the source does seem to
have it... is this just a distro issue?

Doug

On Oct 5, 1:20 pm, Doug <[email protected]> wrote:
> My application uses a MediaPlayer object to play MP3 files.
> Up until v1.6 came out I was doing the following:
>
> 1. Create the player
> 2. Get (and save) the current Audio Routing for
> "AudioManager.MODE_NORMAL" (i.e. "Media" playback) -- so I can restore
> it later when I'm done
> 3. Prepare Stream
> 4. Set new Audio Routing for "AudioManager.MODE_NORMAL" BEFORE I start
> playback (this is based on an application setting, which may/will be
> different from the setting chosen for Music playback)
> 5. Start Playback
> 6. During playback the user may choose to use a different playback
> device, so in that case I would change the routing and the audio would
> behave as expected.
> 7. After playback is complete, restore the saved routing so other apps
> aren't affected by me.
>
> With 1.6 the 'getAudioRouting(x)' and 'setAudioRouting(x,y,z)' have
> been deprecated in favor of a bunch of getter and setter methods for
> each of the possible options.
>
> Here is where my problems start.
>
> a) Users who have had their phone update automatically to 1.6 can no
> longer exert any control over the audio device... it is set to speaker
> and nothing they can do can change that.
> b) When it comes to the *new* methods that the release notes say to
> call... well... a number of them seem to be missing
>    i) is/setSpeakerPhoneOn - present
>    ii) is/setBluetoothA2dpOn - present
>    iii) is/setBluetoothScoOn - present
>    iii) is/setWiredHeadsetOn - MISSING
>    iv) is/setEarpieceOn (or handset, whatever) - MISSING, and not even
> documented!
>    v) There doesn't seem to be a way to specify just which kind of
> audio I'm trying to adjust (unless the 'setMode' method is app vs
> system specific).
>
> Any thoughts on how I can get the functionality back to 1.1/1.5 - for
> now it just seems broken.
>
> Doug
--~--~---------~--~----~------------~-------~--~----~
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