How to identify if bluetooth is idle or in use?

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
rcfree
Posts: 43
Joined: 21 Mar 2013 16:51

How to identify if bluetooth is idle or in use?

Post by rcfree » 21 Mar 2013 16:58

How can I check if the bluetooth is on and is connected to another device?

I want to disable bluetooth after identify who is active but not in use for a specified time (without being connected to another device).

Thanks.

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

Re: How to identify if bluetooth is idle or in use?

Post by Martin » 25 Mar 2013 08:45

Hi,

You can use a condition Bluetooth Enabled to check if bluetooth is turned on in general. There also exists a trigger Bluetooth State to execute a flow when bluetooth is turned on/off.
Unfortunately Android does not expose an API to check what bluetooth devices are currently connected so you have to use triggers Bluetooth Device Connected/Disconnected and track the state of a device on your own.

Regards,
Martin

rcfree
Posts: 43
Joined: 21 Mar 2013 16:51

Re: How to identify if bluetooth is idle or in use?

Post by rcfree » 25 Mar 2013 14:02

First I would like to congratulate the great application and feedback.

I asked for this information, because the application that used previously (T ****r and A*********t) has this feature and I used to turn my bluetooth automatically when not connected to any device.
Since I'm switching to Automagic for ease of use and great features, wish it was checked by developers the possibility to create this resource as the competitors.

Thank you for your attention.

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: How to identify if bluetooth is idle or in use?

Post by pat2net » 03 May 2013 17:43

Maybe it's too late but i have what you need.

http://automagic4android.com/flow.php?i ... 060272be75

bentley_boswell
Posts: 1
Joined: 07 May 2019 11:10

Re: How to identify if bluetooth is idle or in use?

Post by bentley_boswell » 09 May 2019 08:40

to identify if Bluetooth is idle or in use, you could check by pressing Bluetooth icon and see which devices are connected to your device.

Post Reply