bluetooth connecting

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
Jason
Posts: 1
Joined: 28 Feb 2014 17:57

bluetooth connecting

Post by Jason » 28 Feb 2014 18:06

Hey guys im new here ....just started using automagic but loving it. Im trying a flow as follows

once wifi connected

turn bluetooth state on

connect bluetooth device (specific device)

now I know it says in automagic that this feature is not officially supported and might not work on all devices but im wondering if theres any way to fix it?..root device possibly? Its a samsung tab3

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: bluetooth connecting

Post by Martin » 01 Mar 2014 13:00

Hi,

Perhaps it's a timing problem since the bluetooth adapter uses some time to turn on. Please add an action Sleep: 5s before the flow connects to the BT device.

On a rooted device you could also open the bluetooth settings screen of Android and simulate a click on the bluetooth device to connect to.
-action Launch App: com.android.settings/.bluetooth.BluetoothSettings
-action Sleep: 2s
-action Execute Root Command: input tap 400 1000 (x/y-coordinates)

You can find the x/y-coordinates for the tap by enabling Pointer location in Settings->Developer options.

You could also try to use the plugin Secure Settings to connect to the bluetooth device, maybe they have found a way that also works for the tab3.

Regards,
Martin

Post Reply