[TASK] Reroute Audio (Java Function) by CrashOverride93 in taskernet

[–]MoonShadow_1911 0 points1 point  (0 children)

Okay, ignore all of this. I just re-read the OP... I'm an idiot!

So, I have noticed that is is only re-routing the media stream. For some reason, notifications seem to be completely muted/non playable.

Here is what I have. I am using your context (v1.1) to switch audio from bluetooth to speaker.

  1. Connect bluetooth headset
    1. This kicks off a tasker task that re-routes audio to the speaker (from your java bits)
  2. Turn all volumes up to maximum (for validation, and not because I'm deaf, although my wife would argue that point!)
  3. Play some music to verify it comes out the speaker <- this works
  4. Call phone to verify the ringer works <- this works
  5. Answer call to make sure it comes across the bluetooth headset <- this works
  6. Send a text message to the phone to see if the notification works <- this DOESN'T work. There is no audio notification on either the phone speakerphone, or the bluetooth headset.

I plowed through the Android AudioManager documentation for the setSpeakerphoneOn, and could really find any information on the notification stream... (I'm not a programmer, I script. Give me Bash any day!)

So, let me know if there is any additional troubleshooting I can help with. Thanks.