Page 1 of 1

Help with a Media button flow

Posted: 14 Aug 2014 01:56
by Draxxx
Hi Guys,

I have the attached flow, which basically uses a xiaomi media button to activate the flashlight.
It works perfectly.
However, I just realised that when the media plug is plugged in, all audio (calls, notifications etc)
are routed through the headphone jack, and hence, I cannot hear them.

Does anyone know how to set up this flow so all audio goes through the normal paths?
Or would I be better off setting a widget to toggle the sound output path, so when I do use
headphones, audio does go through the jack?

Anyway, all ideas welcome.

Thanks!
Dx