Hello all,
i've published my app AutoBluetooth on Google Play and i would like to share the link with you: https://play.google.com/store/apps/details?id=it.mf.android.autobluetooth
I hope you enjoy the app which allows you to set up some time intervals in which the Bluetooth must be on. Once set the app will take care of enabling/disabling the bluetooth. The app has some logic in it and will detect any device connected, preventing disabling the Bluetooth until the device disconnects.
I developed this app to have BT on when i take my car to and from the office chich occurs usually at the same exact hour every morning.
I would appreciate any suggestion to make the app better.
Regards,
Massimiliano
The app has been updated with Advertising removal and internationalization.
Enjoy!
fanciulli said:
Hello all,
i've published my app AutoBluetooth on Google Play and i would like to share the link with you: https://play.google.com/store/apps/details?id=it.mf.android.autobluetooth
I hope you enjoy the app which allows you to set up some time intervals in which the Bluetooth must be on. Once set the app will take care of enabling/disabling the bluetooth. The app has some logic in it and will detect any device connected, preventing disabling the Bluetooth until the device disconnects.
I developed this app to have BT on when i take my car to and from the office chich occurs usually at the same exact hour every morning.
I would appreciate any suggestion to make the app better.
Regards,
Massimiliano
Click to expand...
Click to collapse
Related
Hi All,
Just published my first app on the market - "Never Forget My Phone"
App Description
Tend to forget your phone in the car? Never Forget My Phone will make sure you'll never forget it again!
Never Forget My Phone monitors your Bluetooth car kit. Once you stop your car, the Bluetooth car kit is turned off and therefore disconnects from your phone. This will trigger an alarm which will remind you to take your phone with you. Once you physically pick up your phone, the alarm will stop automatically for a seamless experience!
Link to the app on the market -
play.google.com/store/apps/details?id=il.co.revivo.nfmp
Would love to hear your thoughts and hope you find this free app useful.
Thanks --Avi
I'm not sure whether or not this has to do with the rom I am using (Tweaked 3.1) but i've noticed that every single time i'm in my car and turn on the bluetooth...my music just starts automatically playing from Play Music. It was opened in the background or anything either...as soon as bluetooth gets turned on it just starts which is really annoying if actually want to talk to people with my phone...I looked through all the settings for play music, bluetooth, android, tweaked and everywhere on my phone but couldnt figure out for the life of me how to disable that from happening. Anyone have any ideas? Thanks.
ultimatdan said:
I'm not sure whether or not this has to do with the rom I am using (Tweaked 3.1) but i've noticed that every single time i'm in my car and turn on the bluetooth...my music just starts automatically playing from Play Music. It was opened in the background or anything either...as soon as bluetooth gets turned on it just starts which is really annoying if actually want to talk to people with my phone...I looked through all the settings for play music, bluetooth, android, tweaked and everywhere on my phone but couldnt figure out for the life of me how to disable that from happening. Anyone have any ideas? Thanks.
Click to expand...
Click to collapse
do you want it NOT play at all, or just not autoplay? there is a setting within the bluetooth menu to disable media connection.
are you using an app for your bluetooth connection? for example, I use vlingo, and each time my phone connects via bluetooth, that app is set by default to launch.
Just dont want it to automatically start playing when I turn on bluetooth. I use HeyTell a lot for talking to people so id rather manually open Play Music and start playing songs myself if so desire later on. I figured there has to be an autostart option somewhere but i cant find it. I actually also cannot find that setting to disable the media connection in a bluetooth menu...where might that be?
Not using an app for bluetooth, just turning it on through the settings in Android on my Charge. Not sure if it makes a difference that im rooted using Tweaked 3.1?
jco23 said:
do you want it NOT play at all, or just not autoplay? there is a setting within the bluetooth menu to disable media connection.
are you using an app for your bluetooth connection? for example, I use vlingo, and each time my phone connects via bluetooth, that app is set by default to launch.
Click to expand...
Click to collapse
ultimatdan said:
Just dont want it to automatically start playing when I turn on bluetooth. I use HeyTell a lot for talking to people so id rather manually open Play Music and start playing songs myself if so desire later on. I figured there has to be an autostart option somewhere but i cant find it. I actually also cannot find that setting to disable the media connection in a bluetooth menu...where might that be?
Not using an app for bluetooth, just turning it on through the settings in Android on my Charge. Not sure if it makes a difference that im rooted using Tweaked 3.1?
Click to expand...
Click to collapse
first, I would try clearing defaults in Play Music.
secondly, to adjust the media output, once you have a bluetooth connection, go into your bluetooth settings and long press your paired device - then select options - from there you can adjust the media connection.
as for me, I leave BT on all the time (doesn't cause significant battery drain while being on an unpaired in my experience).
Cleared the defaults in Play Music and checked the settings when i long pressed on my paired Mazda. I tried just turning off the media connection but then I couldnt do the other things I wanted. I didnt see any other settings for it either anywhere. I'm wondering if it has to do with my Mazda auto starting the music maybe? Or is that not possible... I suppose I can just try leaving bluetooth on if theres not going to be much battery drain...but lately ive experiencing lots of battery drain about 6-7% an hour without me even touching it.
jco23 said:
first, I would try clearing defaults in Play Music.
secondly, to adjust the media output, once you have a bluetooth connection, go into your bluetooth settings and long press your paired device - then select options - from there you can adjust the media connection.
as for me, I leave BT on all the time (doesn't cause significant battery drain while being on an unpaired in my experience).
Click to expand...
Click to collapse
ultimatdan said:
Cleared the defaults in Play Music and checked the settings when i long pressed on my paired Mazda. I tried just turning off the media connection but then I couldnt do the other things I wanted. I didnt see any other settings for it either anywhere. I'm wondering if it has to do with my Mazda auto starting the music maybe? Or is that not possible... I suppose I can just try leaving bluetooth on if theres not going to be much battery drain...but lately ive experiencing lots of battery drain about 6-7% an hour without me even touching it.
Click to expand...
Click to collapse
What about the in-car app? Otherwise, try downloading a Bluetooth app like vlingo (free). And then see what happens when the phone makes the connection to your car. You should get one of those default app menus.
tappin' that....
Cool I will give that a try, thanks for the help!
jco23 said:
What about the in-car app? Otherwise, try downloading a Bluetooth app like vlingo (free). And then see what happens when the phone makes the connection to your car. You should get one of those default app menus.
tappin' that....
Click to expand...
Click to collapse
Please post questions in Q&A
Thread moved
FNM
The App "Media Button Router" is the answer! Open Source and free.
An amazing One click - Connect 2 Specific Bluetooth device for A2DP and Phone app:
Bluetooth Pair
https://play.google.com/store/apps/details?id=com.gnssoftworks.bluetoothpair
found it very useful for swapping bluetooth headphones between devices WITHOUT turning off Bluetooth entirely or going into the settings menu.
Example Use Case:
I have one Stereo Bluetooth headset with mic (two profiles - phone and A2DP audio)
I have one Android Phone and one Android Tablet.
Phone Profile is always connected to the Android Phone, but the A2DP audio changes depending on which device you want to listen to music from.
Normally, if you want to listen to audio from the Tablet when your headset's A2DP profile is connected to the phone, you'd have to first go to the settings menu of the phone, and disconnect the A2DP, leaving Phone Profile connected. Then go to the settings menu on your tablet and connect the A2DP only.
Then you'd have to do the opposite if you want to listen to audio from the Phone again.
Takes a long time.
With Bluetooth Pair, you can specifically connect or disconnect to a specific device and specific profile (phone / a2dp) by widgets.
So you won't have to turn off the bluetooth completely on one device just to allow your headset to connect another device. Nor do you need to go into settings anymore.
1.) Just tap on the A2DP device specific widget on the phone to disconnect, the A2DP Profile from the phone
2.) go to the Tablet, and tap on the A2DP device specific widget to connect the A2DP profile of the headset to the Tablet
Two taps!
Would you mind sharing a code snippet on how you achieve this? I've been working on a little program that I intend to use around the house and this is the missing piece that I can't figure out. Basically, I have some NFC tags spread around the house and a receiver app that triggers various actions. One of them enables bluetooth on my device (if off), turns on my home audio receiver (over telnet), connects to the receiver's A2DP device (this is the missing piece), and launches a music app.
I've seen examples where this works using an AIDL method, but from what I've gathered this no longer works under Android 4.2. Does your app work on 4.2? Any hints you can provide?
Thanks!
Brian
I'm not the writer of this app.
You could try contacting them via the email listed on Google Play.
BTW, while you're making your app, please dedicate a thread to it on XDA so we can all beta test and buy it later!
klau1 said:
I'm not the writer of this app.
You could try contacting them via the email listed on Google Play.
BTW, while you're making your app, please dedicate a thread to it on XDA so we can all beta test and buy it later!
Click to expand...
Click to collapse
Oh, OK. I just assumed this was your app.
After reading the Play Store description more carefully, I don't think this app actually does what I'm trying to do (programmatically establish an A2DP connection). It appears this app enables / disables certain profiles but the actual connection is still handled by the OS.
As far as the app I'm making, I was intending it to just be something for personal use. I'm planning on keeping it very lightweight and tailored specifically to my needs. For it to be used by anyone else they would have to have the same brand of A/V receiver as me (Pioneer) that supports the same telnet commands. Most of the rest of the functionality of the app can be duplicated by using some of the existing NFC apps like NFC Task Launcher. If I ever develop it into something interesting that could be used by a wider audience I probably will post it on XDA for feedback though.
When I bought Gear 2 Neo a week and a half ago, I immediately faced the following issue: how the hell I keep using my Bluetooth earpiece for conducting phone calls? As cool as it looks talking to the Gear, it's not as convenient as wearing an earpiece, and I've been using those for the last 12 years. This new annoyance combined with an old one: when I'm in the car, I want my phone to automatically switch to the car in-built Bluetooth audio, both for phone calls and for media. I don't want to do this manually! And now, with the Gear, just think of the possibility of talking to the watch while driving the car!
Now, the Samsung phone owners have the luxury of being able to switch to the earpiece after picking up the call on the Gear. Not ideal, but workable. Still puzzles me though if you're able to choose a specific Bluetooth phone audio device if you have more than one (e.g. as with the earpiece and the car example). But we, the non-Samsung owners, don't even have this option. So finding a solution was due!
So, here are my use cases:
When I'm not in the car, I'd like the phone to be connected to the Gear all the time while not in the call. This makes sure I get all the notifications etc.
When not in the car and I'm engaged in a call, I'd like Bluetooth phone audio to switch to my earpiece as soon as possible. This automatically disconnects the Gear, meaning I'm no longer able to receive notifications on it. But this is not an issue, as, when I'm on the phone, I prefer not to be distracted anyway. At the end of the call I want Bluetooth audio to reconnect back to the Gear.
When I'm in the car, I'd like my phone to connect to the built-in Bluetooth phone and audio. I would like to stay it like this for as long as my car audio system is on. This means I won't receive any notifications on the Gear, but I reckon this is rather good while driving. When my car audio is off, I'd like the phone to automatically reconnect back to the Gear.
There are two pieces of software that helped me with achieving this:
Tasker. It's not free, but is worth every cent you spend on it. What's more, you can download a 7-day free trial to play with this guide before you commit to buying it.
Secure settings. All the functionality you need for this guide is included in the free version.
My triggers are:
Phone ringing or off hook and not in the car: connect to the earpiece
Phone idle and not in the car: connect to the Gear
Car application is launched (happens automatically when I plug my HTC One M8 into its car holder): toggle car mode on, which, in turn, connects to the car Bluetooth
Power disconnected (which is what happens when I turn car engine off or pull the phone from the car holder) and the car mode was on: toggle car mode off
Car mode switched off: connect to the Gear
Device boot: connect to the Gear
Now, you can import the attached file into Tasker on your phone and give it a go. You will need to go and replace the device MAC addresses and names with YOUR devices first (in Secure Settings configuration for each and every relevant task).
If you don't have in-car Bluetooth, just disable the corresponding profiles.
Now, there are some things that need improvement:
Right now I can't answer the calls on the Gear even if I want (e.g. if I forgot my earpiece at home or if it's out of battery). The reason for this is the way Secure Settings plugin performs BT Connect action: it disconnects the currently connected device first and only then tries connecting the other device. Also, there is no way to figure out if this connection was successful or not. I'm thinking of implementing a special toggle that will disable automatic earpiece connection on user request.
One scenario that is not properly implemented yet is switching from in-car BT to the earpiece while in the call (e.g. when you arrive at your destination while talking on the phone and want to live the car without disconnecting the call). Right now this requires manual intervention.
Unfortunately, Bluetooth connectivity of many devices is still quite buggy. I often find that, despite the fact the phone shows it's connected to the device, the audio is not going through. Or the device doesn't think it's connected (both happen quite often with my in-car BT). Usually, what helps in this situations is resetting Bluetooth on the phone or on the device or on both. I'm thinking of adding BT off/on action before any device switch just to improve reliability. However, sometimes the device needs to be reset, which may be easy (e.g. turning the earpiece off and on) or not (you can't turn the in-car BT off without stopping the engine).
That's all for now. Feedback is appreciated!
Great add thank you!
Y
Sent from my SAMSUNG-SM-N900A using XDA-FORUM, powered by appyet.com
I'm having difficulty opening your file below. Do you open it using tasked, open via file explorer and edit or open via service manager. I also have the m8 and appreciate all the work you've done. I'm fairly new to tasked so figured it would be easier to change your file and then load it.
kartch said:
I'm having difficulty opening your file below. Do you open it using tasked, open via file explorer and edit or open via service manager. I also have the m8 and appreciate all the work you've done. I'm fairly new to tasked so figured it would be easier to change your file and then load it.
Click to expand...
Click to collapse
I have appradio 2. Is there a way to modify this to always disconnect the gear and connect the car radio when I plug in USB from the radio?
You can also accomplish all this with LLama profiles which is a free application
I ended up making my own. Was better as now I have some working knowledge of tasker and secure settings. I dont have Bluetooth in my car so was a little easier.
One thing I did add was a 5 second wait/delay so I can still look at who is calling on the watch, decide if i want to answer or reject from the watch and then if I do answer it automatically disconnects the Gear and allows you to talk through the phone or earpiece.
Thats my only addition as it maintains some function of the watch to allow screening of calls without pulling phone from pocket.
There is a bluetooth setting if you'll only use it for media or phone calls or both )
Just sayin
Proud to Be PINOY
Follow us on twitter @BuhayKolehiyo and @pinoulyKaKung
Sent from my Galaxy Note 3
mjpineda94 said:
There is a bluetooth setting if you'll only use it for media or phone calls or both )
Just sayin
Proud to Be PINOY
Follow us on twitter @BuhayKolehiyo and @pinoulyKaKung
Sent from my Galaxy Note 3
Click to expand...
Click to collapse
How exactly this helps (or is even related to) the issue at hand?
mpogr said:
How exactly this helps (or is even related to) the issue at hand?
Click to expand...
Click to collapse
because instead of disconnecting and reconnecting your watch you can leave it on and choose another device for voice calls and or notifications
mjpineda94 said:
because instead of disconnecting and reconnecting your watch you can leave it on and choose another device for voice calls and or notifications
Click to expand...
Click to collapse
The problem is the phone can have only one device connected to it using phone headset profile and it won't use any other profile (e.g. multimedia) for making calls.
Sent from my GT-I9505 using Tapatalk
Thanks ! Help me alot!
Nc
I need some resolve to me after the call is automatically disconnected BT Handset Gear2 but have remained constantly connected. Do with Timo anyone have experience? Thank you.
I solved this by using an nfc tag as a switcher! I bought an Nfc tag for just 25cents and I wrote on it with the free app Trigger... When I get in the car I swipe the phone on the nfc tag and it connects to the car BT and when I swipe the phone again it switches back to the gear!
Inviato dal mio GT-I9300
mjpineda94 said:
There is a bluetooth setting if you'll only use it for media or phone calls or both )
Just sayin
Proud to Be PINOY
Follow us on twitter @BuhayKolehiyo and @pinoulyKaKung
Sent from my Galaxy Note 3
Click to expand...
Click to collapse
How do you get to that setting? The only option (I have it connected to an M8) is phone audio
longshot201 said:
How do you get to that setting? The only option (I have it connected to an M8) is phone audio
Click to expand...
Click to collapse
It doesnt work
you need NFC , Task or Llama
NRGZ28 said:
You can also accomplish all this with LLama profiles which is a free application
Click to expand...
Click to collapse
[EDIT]
Hi,
I'm trying with Llama, can you give me some help?
I add a new condition "ringing", but I don't understand the related action. Per my understanding I need to disconnect the GEAR, but I cannot find the specific action.
Ok, I understand that is needed Secure Setttings, but I still not able to do what I need: when the action is executed, I need to disconnect gear...
Ok, now everything is OK.
Just to clarify for who is not able to import che xml for Tasker or just want to use Llama that is free.
It is necessary to install "Secure Settings" and to create a Local Plugin Action, involving Secure Settings.
In Secure Settings, selecting the BT connect/disconnect action, it is possible to select from a list of paired device on which of them perform the "connect/disconnect" action
Thanks a lot.
Every time I connect A2DP in my car it launches the music app. Can't find anywhere to disable this annoying behavior.
It might be under the app Smart Connect.
no, those are things you set up. I have no actions set for such behavior.
I don't think it's the phone that take this decision. I think it's rather the bluetooth device that send the "play music" command that open the music app on the phone.
its not Sony, i dont have such issue with my BT devices, including one that is a BT speaker. If you claim its not smart connect, you might want to check other apps similar to smart connect or the BT device/'s app. If possible, also clear the BT device's app data or at least reinstall it.
if you cannot identify the root of the problem i would advise you to do a fresh start for the phone. do a comparison with the BT device's app and without the app.