Comments (3)
This could be refined to only blocking the play media button since that's
probably the only one that's being sent on connection established. I don't have
a device that exhibits this behavior so kind of limited in testing and figuring
out exactly what's going on.
Here's what I think the basic implementation will be:
1. Add another broadcast receiver for bt connect intent, make sure it is an bt
audio intent, not bt phone. Record time of connect in some shared storage
(sharedprefs?)
2. In media button receiver, have check at top of code that checks if it's a
play and then checks the current time against the time recorded for bt audio
connect. If't is too soon after, just return to ignore it. may have to make
sure wherever we're recording the time handles concurrently. Once bt play up
and down keys are blocked, disable saftey by clearing out time. (I doubt any
device is spamming play requests on connect and don't want to block legitimate
user initiated play)
3. Add "safety" preference to preferences page that enables this feature. Make
this feature completely independent of enabling and disabling of media button
router. Some users may want only this feature.
Original comment by [email protected]
on 3 Jul 2011 at 3:54
from media-button-router.
also make sure to spell safety right..
Original comment by [email protected]
on 3 Jul 2011 at 3:56
from media-button-router.
I have seen this behavior on the base model head units of 2012 and 2013 Toyota
4Runner. Even more annoying, the head units send a play button press when a
phone call ends, so if a "ignore play button press after phone call ends"
option were added that would be amazing!
Original comment by [email protected]
on 6 Nov 2012 at 1:03
from media-button-router.
Related Issues (20)
- Voice prompt way too loud, painful with headset HOT 2
- SiriusXM Internet Radio does not show up as one of the media button
- Sometimes pressing Pause will try and launch a different media app HOT 1
- app doesn't work if only one media app is ticked in the settings HOT 3
- Not working on Galaxy Note II
- Adding app to F-Droid HOT 1
- New media apps should not be activated automatically HOT 2
- when lock screen is enabled, use of program will not allow screen to turn off. HOT 1
- Samsung gear media buttons only work once. Then default to Samsung music app
- MBR should not add recently update apps to the App List HOT 4
- Gs4 ver 4.3 Verizon will not add Sirius Xm to the menu of choices allowed to be open
- Enhancement: add option to forward events only if the configured receiver is already started HOT 1
- Rhapsody doesn't show up as option even though selected
- Ability to launch custom apps. HOT 2
- Doesn't work with Cyanogenmod 11
- Media Button Router not working on Samsung Galaxy Note Edge
- doesn't work since update to lollipop HOT 1
- Own TTS settings
- Does not list Youtube in the list of the apps ?
- Does not work on Android 5.x
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from media-button-router.