Giter Site home page Giter Site logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 28, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 28, 2024
also make sure to spell safety right..

Original comment by [email protected] on 3 Jul 2011 at 3:56

from media-button-router.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 28, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.