Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - How to enable Bluetooth to be always on?

Two question on Bluetooth development on Android:

  1. Is there a way to enable Bluetooth to be always on (I might have a long device discovery phase in my application) in Android? As far as I can see the default value is a count down from 120s.

  2. Does it exist any open source Bluetooth API implementations?

like image 686
Tor-Morten Avatar asked Sep 14 '09 12:09

Tor-Morten


2 Answers

Bluetooth implementation is now available in the Android 2.0 API. See this and this.

like image 132
Michaël Avatar answered Oct 07 '22 18:10

Michaël


Enabling Bluetooth to be always on, may not be a good decision, if your only concern is long discovery delay ("battery life"-wise).

As for third-party Bluetooth APIs, the only thing that I've heard of is iAnywhere Blue SDK (from Sybase, not free, only evaluation version available), which covers some of the features, that will be supported in the future from the system/bluetooth and bluez packages.

According to the Android's Bluetooth roadmap, most of the long waited things like Java API, Bluetooth 2.1 + EDR will be implemented, at one point in the future.

Good luck with your project.

like image 37
Dimitar Dimitrov Avatar answered Oct 07 '22 17:10

Dimitar Dimitrov