[Q] Increasing how often phone checks the play/pause button on headphones - Verizon Samsung Galaxy S III

Hi, here's my issue in the simplest terms I can come up with: I'm attempting to create an app that detects when the play/pause button on wired headphones is pressed every few milliseconds (less than 5ms preferably). I have managed to get the app to detect when it's pressed, however it's not checking that the button is pressed often enough so if you press the button and release really quickly, sometimes the app won't register that the button was pressed. I would really appreciate some guidance on how I could go about increasing how often the play/pause button is checked!
If you'd like more details on the project I'm working on, I made a post on a different forum called Cemetech. Apparently I can't include hyperlinks here yet so if you want to view that post, just copy and paste this address: cemetech.net/forum/viewtopic.php?t=16184

Related

Press-to-Record button

Hi,
When I press and hold the press-to-record button it takes a good two seconds before it starts recording. In my opinion this is too long and I would like it to be shorter, maybe half a second. Is there a registry key or something I can change to make this shorter?
My second qusetion is I have no use for the Voice Recognition app launcher it comes with, I would prefer that I press the PTR button once and it just loads Notes. I can do that if I set the button to the Record program but then I cannot have the Press (Hold) functionality to record on holding it down. If I set them both to Record I get an error that every button must have a unique assignment. Is there any workaround? FWIW I couldn't find Notes in the list there.
Edit: sorry, I forgot to mention my device is a HTC TYTNII.
Thanks!
Chris

Button Mappings - So Far So Good!

Guys, this is what I have done with my button mappings and so far it seems to be working reasonably well. Well, reasonably enough that I am happy with it/can live with it.
Now I am very nit-picky and am coming from a heavily customized WisBar world. But in my quest to be stylus-free (and loving the WOW-factor of TF3D), I am able to live with the device by making the changes listed below.
-+-+-+-+-+
1. AEBPLUS - Volume Buttons
o Remapped volume buttons to provide Up/Down scrolling
o HOLD volume up or down - normal volume control
I did this because the TP was rejecting calls on its own whilst in my holster -- you know, the "press any volume button to mute the ringer" feature.
Note that if you do this, don't forget to look at the "Restore Volume Slider" option in AEBPlus (that guy thought of everything). I have all of mine unticked. Also take a look at: Options|Other Options|Control Volume Directly.
Screenshot: http://auxiliary.razer7.com/aevolume.png
··········
2. AEBPLUS - Phone Key ("Green Phone Button" in AEBP)
o Press once = Phone Button
o Press twice = Task List (Swipe left shows Programs)
o Press three times = Action List <-Note the Cut/Copy/Paste here!
Screenshots:
Task List: http://auxiliary.razer7.com/tasklist.png
Task List - Swipe Left: http://auxiliary.razer7.com/programs.png
Action List: http://auxiliary.razer7.com/actionlist.png
ABOUT THE TASK LIST: The Task List (and Programs list) is all touchable. AEBPlus provides its own task list as well but it isn't as nice as the one that I am using nor is it fingerable. The one that I am using is a freeware program called "MortButtons".
Download MortButtons here:
http://www.sto-helit.de/index.php?module=download&action=list&category=13
NOTE: Don't forget to also download the "ClickLED" skin on the same page. This skin closely matches the TF3D colour scheme.
During my testing, I've noted that MortButton uses about 250K (if you decide to leave it resident (recommended!)) and zero CPU since it is being called by AEBPlus.
ABOUT THE ACTION LIST: The "Action List" (as pictured above) is part of AEBPlus and can be custom-catered to your liking. I like to keep it simple and simply have cut, copy and paste in there, as well as toggle Wi-Fi (which works on the TP).
··········
3. AEBPLUS - End Call Button ("Red Phone Button" in AEBP)
o Press once = End Call
o Press twice = Last Task (ALT-Tab)
o Press thrice = Call DinarSoft TapText*
* "TapText" is a little utility that allows you to create a menu with clippings in it. I used it for email addy's and more. Check it out. I find it very useful and worth the ten bucks to register.
Screenshot of TapText in action: http://auxiliary.razer7.com/taptext.png
-+-+-+-+-+
4. About the Home and OK Buttons...
Now these two buttons *can* be mapped using AEBPlus, however, they can't be *re-mapped*.
In other words, if you map something to these buttons, they will also perform their inherent functions (i.e. the Home button will always go home first; the OK button will always send an OK message to the system, etc.)
Personally, I have left these two alone.
-+-+-+-+-+
CLOSING COMMENTS:
Now there is MUCH MORE you can do with the above two apps in the configuration I've described. Customize it to your delight.
I hope that this post helps some of you guys out. I need to give back to this community!
This community R0X.
Thanks for sharing. Will try this out as soon as possible.
You're very welcome!
I was playing around with this setup earlier today and so far, it has been working really well.
Take care.
I have AEBPlus and it is working great. My home key is mapped to be the start menu on a single press and torch on a long press, the back button closes active applications on a single press. My soft keys are mapped to lock the device and contacts. Works perfectly for me.
I'd already re-mapped the volume buttons as you did, though for a different reason. I use MS Readern often, and find the circular direction button on the TP pretty useless - I try to press arrow down and get the centre keypress instead more often than not. The volume buttons are a perfect substitute.
On tip though - when mapping the volume buttons it works best if you map double click and triple click to none. Doing otherwise gives confusing results.
Excellent post Minus-1, AEBPlus is a program I'd been looking for since getting my touch pro and the Mortbuttons program is proving to be a very useful program itself. one q though on the button options list in AEBPlus which ones cover the touch pros 'home' button and '<-' button
grezz said:
On tip though - when mapping the volume buttons it works best if you map double click and triple click to none. Doing otherwise gives confusing results.
Click to expand...
Click to collapse
Absolutely. I have only single click (directional up or down) and press-and-hold (volume control).
I often double-click the volume button to move up two elements, etc.
Excellent tip. Something definitely worth noting!
P.S. One quick note about the smartwheel: I used to HATE it but now I LOVE it. U have to get used to it and memorize the length of your stroke, etc. Once you do, tho, honestly, doing things become a breeze (especially whilst reading RSS).
yan2k said:
Excellent post Minus-1, AEBPlus is a program I'd been looking for since getting my touch pro and the Mortbuttons program is proving to be a very useful program itself. one q though on the button options list in AEBPlus which ones cover the touch pros 'home' button and '<-' button
Click to expand...
Click to collapse
Hiya, Yan2K!
I'm glad that you're enjoing AEBPlus and MortButtons.
In AEBP, the '<-' is mapped as the "OK Button" (which is precisely what that button means; some people like to call it the "back button" but it actually send a WM_OK message to the system).
As for the HOME button, you will have to map it...
In AEBPlus, go to the FILE|ADD BUTTON menu entry and press your HOME button. The TP will go back to the home screen but don't worry -- AEB is still running. Just click on your Quick Menu in the home screen (upper right corner of your task bar) and switch back to the AEB task.
Now remember: if you map these two buttons, they will NOT unmap their original functions... I generally leave these two buttons alone m'self.
Cheers!
thanks for the quick reply. I've created the 'home' button as you instructed, ended up with 'button #00ED' but cant get it to do anything either on 1-2-3 or long button press nor can i get the 'ok/<-' button to do anything either. prob doing something stupid can you help? ideally i want to be able to run a program on a long 'home' key press
Well mine is working, but not when TF3D is the active application. I remaped the (Long press) Home butoon to Second Today, and when I press it (long) it opens Second Today. Again, only when the TF3D is *not* the active program.
Hope that makes sence...
Cheers,
Cacti
yan2k said:
thanks for the quick reply. I've created the 'home' button as you instructed, ended up with 'button #00ED' but cant get it to do anything either on 1-2-3 or long button press nor can i get the 'ok/<-' button to do anything either. prob doing something stupid can you help? ideally i want to be able to run a program on a long 'home' key press
Click to expand...
Click to collapse
Mapped the volume buttons as you did. Just what I was looking for. Also set 'back' to proper 'ok/close'.
Cheers.
I think,the original functions are hardcoded somewhere(dll or something else). We need to find the file and modify it to disable these functionalities.
I remapped the "green" button the following way:
1 press) Phone application
2 presses) Alt+Tab
However, now when there is an incoming call I can't use it to answer. Which is quite logical.
Is there a way around this?
le_cactus said:
Well mine is working, but not when TF3D is the active application. I remaped the (Long press) Home butoon to Second Today, and when I press it (long) it opens Second Today. Again, only when the TF3D is *not* the active program.
Hope that makes sence...
Cheers,
Cacti
Click to expand...
Click to collapse
played around with it and found purely by chance that just like you said you cant use the home button or '<-/ok' button to do anything when you've actually got the TF3D home screen showing. hopefully someone will come up with a workaround for this as although i can make use of the '<-/ok' button it pretty much makes the 'home' button redundant for anything else but its original purpose
yan2k said:
played around with it and found purely by chance that just like you said you cant use the home button or '<-/ok' button to do anything when you've actually got the TF3D home screen showing. hopefully someone will come up with a workaround for this as although i can make use of the '<-/ok' button it pretty much makes the 'home' button redundant for anything else but its original purpose
Click to expand...
Click to collapse
Oh man, the OK button is one of the buttons I miss the most.
Specially while texting and such.
I hope I can remap some of the full keypad buttons as well.
I noticed that it sometimes doesnt' start up well, but oh well.
I re-maped the volume down to Ok/Close and Volume up to Start Menu
Then changed the volume settings to long hold, Which half the time when i press the buttons the volume comes up. haha.
hello!
I want to remap some buttons and I've tried with AE button Plus without success. Can you help me?
What I have is the call button configured for a long press to cyberon voice dial.
The disconnect button long press is for vibrate / ring.
what I want is to turn home and back buttons long press to wifi and bluetooth on/off and.
is it possible?
can I do this without AE button +? like a registry change? would be even better... or another program suggestion is also a good help!
Please help!
deiota
Is it able to remap the PTT button? That would be AWESOME.
dumb question, but where can I download AEB Plus?
I can't find a direct link or site to get the program!
Thanks...
http://ae.inc.ru or ask directly the author AE(here on XDA-Alexander Eltsyn).
So, is there any way to change the mapping on my keyboard? Like the hot button keys really get in my way, and I'd rather have a TAB key than a CAPS key, and stuff. So is this possible yet?

How to configure the hansfree button

Hello....is there any way of changing the action when the handsfree button is pressed or even long pressed & doublepressed
yes, same question. Extremely annoying how easy it is to accidently double tap the button and call the last person.
any suggestions anyone ??? maybe a registry edit or anything..... still waiting
The handsfree button has the same function as the call button typically.
double press -> redial (same as call button on phone)
long press ->
a) on some ROMs simply doesn't work. Guess it depends on driver version
b) if workiing, you can set the function in Buttons, gets same function as long press Button 1 (left phone button)
isnt there a cab or file cause its really annoying and would love to set it to next song or previous song
bump any one some one help its really annoying randomly calling someone
Not sure but;
Check in your registry in HKCU\Control Panel for your headset settings
Search for 'audio manager headset tool' on forums.
Try this cab
Havent tested it my self yet
[APP+DRV] [Keys remapper] Topaz Keyboard Controller GSM v1.4
markisme said:
Hello....is there any way of changing the action when the handsfree button is pressed or even long pressed & doublepressed
Click to expand...
Click to collapse
Topaz Keyboard Controller;
http://forum.xda-developers.com/showthread.php?t=555821
What is it ?
It's a solution that allows you to remap ALL keys of your device.
Any key (yeah, i mean ANY, including Home and Back keys) can be reassigned to perform desired actions.
Have fun,
Senax
Thanks for replying ... I already have Topaz Keyboard Controller installed but it does not let you configure the (wired) handsfee button.. or if there is a way then pls help !!!
i am going for another head-set...
samsung has a usb-mini where the call button is less sensitive, plus you can change the headset via mini jack
donno yet if the samsung works on htc
but there should be other brands
What about this headset?
http://www.htcaccessorystore.com/nl/p_htc_item.aspx?i=179134
djg269 said:
What about this headset?
http://www.htcaccessorystore.com/nl/p_htc_item.aspx?i=179134
Click to expand...
Click to collapse
thanks for the suggestion - see there is a hold button

[APP] Volume Locker +

My first personal designed app: Volume Locker +
This is my first designed little app. It may not be great, but it will be a good start.
It's free and ads free. Welcome to play around with it. If you think it is cool, you can leave a good comment. Please also feel free to share any of your opinion or suggestion. Thx~~~ ^_^
Google play store link: https://play.google.com/store/apps/details?id=com.nickyang.volumelockerplus
Music enthusiasts? Ever feel annoying and ear damaged when the volume+ hardware button is accidentally long pressing in your pocket?
Volume Locker+ can help you protect your ear from accidental long pressing on the volume+ hardware button by detecting the sudden volume change, setting a maximum allowed media volume, pause the media and re-adjusting the volume to a reasonable level.
1. Why to use Volume Locker+
Android system does not allow hardware volume button to be overwritten by app running in the background. Current apps in the market with a similar function simply re-adjust volume which will not work effectively if the volume+ button is long pressed by user which is the most common situation during an accidental long press in the pocket. Volume locker+ can help you pause media to prevent ear damage.
2. How to use Volume Locker+?
a. In the main interface
Enable the volume locker and set the maximum allowed media volume by click the check box. Once it is
checked, a service will be created to run at background.
b. In the setting of the menu (Right top corner)
1) user can specify whether media should be paused or not, when volume is detected to be larger than the
threshold.
2) Choose the duration to pause media. Default is 2 seconds.
3) Choose if service is started on boot. This is only effective when the volume locker is enabled before shut down
or reboot.
3. How to report a bug or request a feature?
You can send your question or request to the email at [email protected].
I would appreciate it very much if you can give me some suggestion or feedback. You also welcome to leave a comment and rating.
I know there are so many professional developer, your feedback will mean a lot to me.
Thanks!

Xiaomi 10 Pro shortcut swipe from lock screen and Bluetooth volume sync

Hi, been playing this phone for 1 week already.
Which i find it very interesting and useful!
But there are some issues which i find it redundant and would like to see if experts out there can solve it.
1. When i long press the fingerprint in lock screen, it will unlock the phone. but when you press long enough i can access to the Wechat pay, Mi AI, Alipay shortcuts.
I use wechat pay alot, so when i swipe to do payment (the barcode one), it will notify me EVERYTIME Not to send the code to other people unless making payment and i have to press "got it". Is there a way i can bypass this and go directly to the barcode just like when you doing it the longest way where you have to open the wechat > wechat pay > Money.
2. when i connect my bluetooth speakers (my speaker has its own volume control), the volume of my xiaomi phone and speaker volume works separately.
What i mean is when i turn the volume up on the phone only the phone media volume goes up and not the speaker. so i have to turn up the speaker volume again to set the volume i want. Is there a way that could sync both volume at the same level so one volume key can set both phone and speaker.
i found that this is a common case too where many people are searching for solution...
I have tried the enabling/disabling absolute audio which doesn't work
I just found out that the problem will not persist when i am on a call.
So when i press the volume up and down on the bluetooth headset, it will also control the volume on the phone (the volume bar on the phone will go up and down while i am increasing or decreasing the volume on headset)
I've found that the problem is very common with every single phone I had..... probably it depends also from the bluetooth accesories used.

Categories

Resources