Bluetooth Condition
Create a new condition to change settings based on a Bluetooth MAC address being in range.
Android 2.0 finally adds APIs that would allow apps like Locale to implement a “Bluetooth Condition.” If this were implemented, it would only be available on Android 2.0 phones.
Update: There are some Android bugs that will prevent this from being implemented for the time being. Specifically, we’ve found that Bluetooth will periodically crap out until the phone is rebooted.
30 comments
-
Jacek Szafarkiewicz
commented
I've created such plugin.
But now it is only for tests because it use bluez api which isn't included in NDK.
I have rooted phone and it works.If some one wants to develop:
https://bitbucket.org/hadogenes/localeblue/Download apk:
https://bitbucket.org/hadogenes/localeblue/downloads/LocaleBlue.apk -
skylarsutton
commented
Use Bluetooth
-
Steven Benders
commented
I just realized the Andvari Enterprises plugin does exactly this.
-
Steven Benders
commented
@skylarsutton
Hah! Found it! Or at least the Andvari Enterprises one. Totally does what I was looking for, I just didn't mess around with it enough.
-
skylarsutton
commented
Can't we close this one out now that gerrowadat's plugin is in the Market?
-
skylarsutton
commented
-
vlb
commented
so.... what's the current story on this?
-
masterjo
commented
thx for the update on this one - could you please post the according android-bugs so we can star the pertaining issues and get active in the community?
that would be very kind! -
gerrowadat
commented
Afraid not -- the Bluetooth SDK only really started working in 2.1+
-
andocromn
commented
it sucks that it will only work in 2.0, my motorola backflip is only 1.5. is there anyway to detect if a device is connected? if my car radio is in on / in range / connected to my phone, is the perfect way to tell if i'm driving in my car.
-
gerrowadat
commented
Thanks for the feedback. I got a report it doesn't work on the samsung moment. Would love if someone was able to reproduce it.
-
jsimbol
commented
@gerrowadat - your plugin works great on my Motorola Droid. I have a driving condition that enables certain programs and changes volumes when my bluetooth headset is connected (the only time i use it is when driving). Thanks so much!
-
EarlyMorningHours
commented
The new Bluetooth plugin is working flawlessly on my N1 paired to the built-in BT in my Toyota Prius. Using the plugin I made a situation called "Driving" that enables GPS, updates my Gtalk status and enables Say My Name (for some reason the N1 does not forward caller ID info to the Prius display). Now if I could just have Locale switch to the Maps Live Wallpaper and find a proper car dock for the N1, I'll be in techo-nirvana.
-
gerrowadat
commented
Bluetooth locale plugin is now on the market as of this evening. Feedback welcomed.
Bear in mind it won't detect stuff that is connected when you first install the app, but will work fine after that.
-
gerrowadat
commented
Detecting connects and disconnects is easy -- it's just an action, the default android API presents it.
Being able to straight up ask the phone "Is this MAC in range" is more complex -- It's not really doable with the default API.
I've hacked together a plugin I've been using for a little while that is met if the phone is connected to -any- paired device. It works pretty well, but bear in mind that all I have to test is a nexus one, running whatever the standard OTA build is.
I'll make it so you can select from a list of your paired devices and release it in the next few days. It's useful for me in this exact way, using in the car.
-
scott reston commented
Edward Kim's Car Locator app has a plugin that detects a disconnect from a particular bluetooth ID. That suggests it's doable and reasonably stable, no?
-
asq.japan
commented
Definetly usefull! You have your phone next to your pc and could start sync files by bluetooth automatically
-
joshua.purcell
commented
Aside from the benefits of changing usage methods while in the car, I think it would also be useful to have my laptop (or any computer) automatically lock or unlock based on me (and my phone) being near enough to connect via bluetooth.
-
neilfred
commented
I use a2dp in my car, but it gets all skippy if wifi is turned on, so I'd like to automatically turn off wifi when connected to the a2dp device.
-
Chris Krough
commented
I also think this would be great to allow me to make an "In my car" situation, better than the driving situation (movement based), since that one applies to too many situations.