Transfering call from bluetooth speakers to phone by tasker, how?

697 views
Skip to first unread message

maxa

unread,
May 10, 2011, 2:12:12 AM5/10/11
to Tasker
How do I transfer a call from bluetooth speakers to the phone with
tasker? Cant find any parameter for that action :/

Why: When in car I want the calls to go through bluetooth handsfree
system, but if its a private call and I have company in the car I
would like to be able to pick my phone up from the dock and then the
call should be transfered to the phone automaticlt even thou the
bluetooth still is connected.

How do I do this?

Thanks in advance
/Max

Pent

unread,
May 10, 2011, 4:34:46 AM5/10/11
to Tasker
The only way in Tasker currently is to turn off BT while it's not in
the dock I guess.

Pent

maxa

unread,
May 11, 2011, 3:31:35 AM5/11/11
to Tasker
Darn, is there any plans to implement this function.
I see there are parameters to make this and can imagine that this
would help more than me to route their audio to the right place at the
right time.

Thanks for your quick reply!
Best regards
/Max

Pent

unread,
May 11, 2011, 3:57:14 AM5/11/11
to Tasker
> Darn, is there any plans to implement this function.

I certainly plan to investigate, it seems very popular!

> I see there are parameters to make this

Where ?

Pent

maxa

unread,
May 11, 2011, 6:38:56 AM5/11/11
to Tasker
Im not a programmer, so please bare with me :)

Found this for example:
if(audioManager.isWiredHeadsetOn())
{
audioManager.setWiredHeadsetOn(false);
audioManager.setSpeakerphoneOn(true);
audioManager.setRouting(AudioManager.MODE_NORMAL,
AudioManager.ROUTE_SPEAKER, AudioManager.ROUTE_ALL);
audioManager.setMode(AudioManager.MODE_NORMAL);

}

Might need some permissions of some kind <uses-permission
android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

If I understand this right, you should be able to route the speakers.
The above looks most like something hardcoded in an app but perhaps
its possible to use the audioManager.setRouting, within calls too?

If you look here http://developer.android.com/reference/android/media/AudioManager.html
there is some more information, but im no programmer so im just
guessing hehe

Hope that is to any help
Best regards
/Max

Pent

unread,
May 11, 2011, 10:17:00 AM5/11/11
to Tasker
Of course I'm aware of the audio manager functions...

>         audioManager.setWiredHeadsetOn(false);
Deprecated (won't work soon).

>         audioManager.setSpeakerphoneOn(true);

That doesn't see relevant to transferring to BT headset.

>         audioManager.setRouting(AudioManager.MODE_NORMAL,
> AudioManager.ROUTE_SPEAKER, AudioManager.ROUTE_ALL);

Deprecated.

>         audioManager.setMode(AudioManager.MODE_NORMAL);

Can't see how that's relevant either ?

One or two of the others might be relevant (though seems doubtful).
The others problems are (a) time (b) I don't have any BT equipment to
experiment with.

Pent

Pent

unread,
May 11, 2011, 3:44:48 PM5/11/11
to Tasker
I ordered a cheapo BT speaker, will see what I can do with it.

Pent

Pent

unread,
May 14, 2011, 7:26:49 AM5/14/11
to Tasker
> I ordered a cheapo BT speaker, will see what I can do with it.

It seems this is pretty easy, I'll put it in for next time.

It's the A2DP stuff that is harder.

Pent

Eric

unread,
Jul 6, 2011, 5:25:28 PM7/6/11
to Tasker
Pent,

Thanks for the great app BTW! I'm looking to do something along these
lines, and wondered if it's already possible to do in Tasker, or is
the type of thing you're working on adding in the next release?

Whenever I plug my audio jack into my MyTouch4G in the car, even with
my BT headset connected, the phone wants to make the audio jack the
dominant device when a call happens (in or out). I have to press the
'Audio Source' button real quick and select the BT headset before
someone picks up. Needless to say, this is a real pain while driving.

So basically I want Tasker to watch the States of the BT headset and
the headphone jack being connected, which I know how to do. Then once
those conditions are met, I want the task to set the default audio
device to be the BT headset, not the headphone jack. Any help you
could provide would be most appreciated.

-Eric

Pent

unread,
Jul 7, 2011, 3:40:46 AM7/7/11
to Tasker
> Thanks for the great app BTW!  I'm looking to do something along these
> lines, and wondered if it's already possible to do in Tasker, or is
> the type of thing you're working on adding in the next release?

It's in the beta posted above, action Bluetooth Voice in category
Phone (I think).

Pent

BradM

unread,
Jul 7, 2011, 6:57:36 AM7/7/11
to tas...@googlegroups.com
I have the opposite problem. When I try to connect to my Bluetooth device and also plug in a headset to listen to an audio book, the book audio goes through the Bluetooth device rather than the headphones. I'd like the audio book playback to go through the headset and phone calls to go through the Bluetooth. Is that possible or is that just a problem with my Droid X?

Brad

Eric

unread,
Jul 7, 2011, 8:37:58 PM7/7/11
to Tasker
I'm sorry, where is the beta posted?
The current version on my phone is 1.0.21u2m.
(I didn't see "Bluetooth voice (or anything)" under Phone category.)

-Eric

On Jul 7, 3:40 am, Pent <supp...@apps.dinglisch.net> wrote:
> > Thanks for the great app BTW!  I'm looking to do something along these
> > lines, and wondered if it's already possible to do in Tasker, or is
> > the type of thing you're working on adding in the next release?
>
> It's in the beta posted above, actionBluetoothVoice in category
> Phone (I think).
>
> Pent

Pent

unread,
Jul 8, 2011, 4:32:59 AM7/8/11
to Tasker
> I'm sorry, where is the beta posted?

At the top of this forum.

Pent

Pent

unread,
Jul 8, 2011, 4:34:19 AM7/8/11
to Tasker
> I have the opposite problem. When I try to connect to my Bluetooth device
> and also plug in a headset to listen to an audio book, the book audio goes
> through the Bluetooth device rather than the headphones. I'd like the audio
> book playback to go through the headset and phone calls to go through the
> Bluetooth.

Well you could try turning BT Voice off with the action I mentioned
above.

Pent

sayling

unread,
Jul 8, 2011, 1:04:36 PM7/8/11
to Tasker
When connested to your BT device, if you go to your BT settings and
long press on the connected device, you shold get an option to set
whether it is active for phone calls and/or media. My car BT won't
play media, so I have that set to phone only, but my laptop and bike
BT can both handle phone and media - so they are set as such.

This may help?
Reply all
Reply to author
Forward
0 new messages