Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

AndroidのBluetooth Onでヘッドセットを自動接続し接続断でBluetoothOffにする

普段、HBH-DS205というBluetoothヘッドセットをAndroidにつなげて音楽を聴いています。AndroidのBluetoothをOnにすると自動的にヘッドセットを接続し、ヘッドセットの電源を落として接続を切るとAndroidのBluetoothをOffにするように設定してみました。

BluetoothをOnにしたときの自動接続には、Bluetooth Auto Connect というアプリを使い、Bluetooth接続が切れた時に自動で Bluetooth Offにするのは Taskerを使いました。

Bluetooth Auto Connect Settings
Bluetooth Auto Connect Settings

Bluetooth Auto Connect をインストールし、Bluetooth On のイベントで接続するようにします。また、接続したい機器の ProfilesとDevicesを設定しておきます。ついでに、Run Appの設定で Google Play Musicを指定しておけばMusicアプリを起動するところまで自動です。

Bluetoothヘッドセットの電源を落としてBluetoothを切断すると端末のBluetoothをOffにする仕掛けはTaskerを使いました。

Taskerで、Bluetooth Connectedを条件とした新しいProfileを作ります。Bluetooth ConnectedはState>Netの下にあります。

それから新しいTaskを作ります。Netの下にあるBluetoothを選択して Set OffというActionにします。Bluetooth をOffにするだけの単純なTaskです。これをBluetooth Connectedに割り当てます。そうするとBluetooth が接続されるとBluetoothをOffにするという変なプロファイルができます。ここでちょっとした技が必要です。一旦作ったプロファイルのタスクの部分を長押しするとポップアップメニューが現れるので、Move To Exit を選択します。

これで、Bluetooth Connectedになるときは何もせず、その状態から抜けるときにBluetooth をOffにするというプロファイルができました。

Bluetoothの自動Off機能はBluetooth Auto Connectにもあるようですが、Taskerを使ってやってみました。

PAGE TOP