Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
1
votes
0
answers
63
views
Media Skip back/forward via USB keyboard keys
I have an Android 14 phone (Samsung Galaxy A15). I want to control media playback with a USB keyboard connected to my phone. The keyboard does not have dedicated "media playback" buttons. Is there an app (or setting) that lets me do that? I tried the app Button Mapper (by flar2) and it works for pla...
I have an Android 14 phone (Samsung Galaxy A15). I want to control media playback with a USB keyboard connected to my phone. The keyboard does not have dedicated "media playback" buttons.
Is there an app (or setting) that lets me do that?
I tried the app Button Mapper (by flar2) and it works for play/pause, but not for skipping back/forward.
Note that the media app I want to control is this one:
[Music Player & MP3 Player by InShot Inc.](https://play.google.com/store/apps/details?id=musicplayer.musicapps.music.mp3player)
Stefan Monov
(185 rep)
Sep 18, 2024, 08:39 AM
• Last activity: Sep 21, 2024, 07:46 AM
2
votes
1
answers
5470
views
Remap Bluetooth headset buttons on Android
I have my Bluetooth headset and it has 3 buttons: - BACK/Volume- - NEXT/Volume+ - PLAY/STOP I need to map one button (any of these) to take action after pressing (e.g. turn on the flashlight, or directly make a call to a specific person). I found https://android.stackexchange.com/questions/218857/re...
I have my Bluetooth headset and it has 3 buttons:
- BACK/Volume-
- NEXT/Volume+
- PLAY/STOP
I need to map one button (any of these) to take action after pressing (e.g. turn on the flashlight, or directly make a call to a specific person).
I found https://android.stackexchange.com/questions/218857/remap-bluetooth-headsets-media-key-android-9 , so I installed AutoVoice and Tasker, but I am not able to call action after the button on the headset is pressed (of course, I am pretty newbie with AutoVoice and Tasker, so maybe my fault).
Could you please help me?
peter
(121 rep)
Dec 16, 2021, 10:01 AM
• Last activity: Jul 18, 2024, 11:05 PM
1
votes
0
answers
188
views
How to make PC work as Bluetooth headphones with Android devices?
I use my Android tablet/phone as a second screen and play media on it (YouTube videos, music, etc.) and send the audio to my PC where I listen to it through headphones. I use the application "Bluetooth audio receiver" from the Microsoft store. **How do I use my PC to send a start/stop signal (AVRCP)...
I use my Android tablet/phone as a second screen and play media on it (YouTube videos, music, etc.) and send the audio to my PC where I listen to it through headphones. I use the application "Bluetooth audio receiver" from the Microsoft store.
**How do I use my PC to send a start/stop signal (AVRCP) to the android device?**
*Yes, of course you can tap on the screen for this, but I prefer tactile feedback from physical buttons. Besides, sometimes I still need to unlock the device first...*
*P.S. If necessary, I do not mind changing the application to transmit the sound itself.*
Фёдор Никонов
(11 rep)
Oct 27, 2023, 05:41 PM
• Last activity: Jun 1, 2024, 11:44 AM
1
votes
1
answers
115
views
Responding to media button when media player is closed
According to what is clearly described here: https://developer.android.com/guide/topics/media-apps/mediabuttons when I press the media button (PTT button in my unihertz Titan Pocket) after completely closing my media player (foobar2000 app permits this) the OS automatically resurrects my media playe...
According to what is clearly described here:
https://developer.android.com/guide/topics/media-apps/mediabuttons
when I press the media button (PTT button in my unihertz Titan Pocket) after completely closing my media player (foobar2000 app permits this) the OS automatically resurrects my media player and asks it to play. This drives me nuts. If I stop the music and enter a silent room, I always risk to start playback (possibly loudly) by just badly handling my phone. This is unacceptable to my standards of education. I see some possible counteractions: - ask the app developer to modify the code in order to set a null media button receiver at app exit - reduce the media volume everytime I completely stop my media player - write an app by myself that sets a null media button receiver Really there is not a system settings option that could affect this awkward-by-design behaviour?
https://developer.android.com/guide/topics/media-apps/mediabuttons
when I press the media button (PTT button in my unihertz Titan Pocket) after completely closing my media player (foobar2000 app permits this) the OS automatically resurrects my media player and asks it to play. This drives me nuts. If I stop the music and enter a silent room, I always risk to start playback (possibly loudly) by just badly handling my phone. This is unacceptable to my standards of education. I see some possible counteractions: - ask the app developer to modify the code in order to set a null media button receiver at app exit - reduce the media volume everytime I completely stop my media player - write an app by myself that sets a null media button receiver Really there is not a system settings option that could affect this awkward-by-design behaviour?
user2965433
(111 rep)
Apr 13, 2023, 03:53 PM
• Last activity: Mar 4, 2024, 12:10 PM
4
votes
2
answers
58722
views
Disable telephone control (answer call, call) from Bluetooth headphones
Is there a way to disable telephone control (answer call, call) from Bluetooth headphones? I just want to listen to music.
Is there a way to disable telephone control (answer call, call) from Bluetooth headphones? I just want to listen to music.
sxagan
(43 rep)
Sep 9, 2017, 10:18 AM
• Last activity: Mar 29, 2023, 12:01 PM
0
votes
3
answers
8444
views
Remap Bluetooth Headset's media key [Android 9]
Setup: - OnePlus 5t, Android 9.0, not rooted - Bluetooth 5.0 headset with one media button A single tab on the media button starts the Google Voice Control / Assistant, there is no way to change a tab on the button to play/pause for example - on the headset's side. The only software solution to disa...
Setup:
- OnePlus 5t, Android 9.0, not rooted
- Bluetooth 5.0 headset with one media button
A single tab on the media button starts the Google Voice Control / Assistant, there is no way to change a tab on the button to play/pause for example - on the headset's side.
The only software solution to disable Google Voice popping up always when I press the button was to disable the Google-App completely. But this stops the media-button from working completely.
After hours of trying, searching nothing worked for me.
My goal is to archive that a tab leads to play/pause music.
ByteFlowr
(111 rep)
Nov 24, 2019, 12:20 PM
• Last activity: Mar 10, 2023, 04:34 AM
1
votes
0
answers
2356
views
How to control volume for Chromecast with Google TV from your phone AND have 5.1 surround support
I have just bought a new Chromecast with Google TV and hooked it up to my A/V-Receiver+Beamer setup, but I will refer to it as "TV" further on as it doesn't make a difference here. According to [Android Police - How to control Chromecast with Google TV volume using your phone](https://www.androidpol...
I have just bought a new Chromecast with Google TV and hooked it up to my A/V-Receiver+Beamer setup, but I will refer to it as "TV" further on as it doesn't make a difference here.
According to [Android Police - How to control Chromecast with Google TV volume using your phone](https://www.androidpolice.com/2020/11/13/how-to-control-chromecast-with-google-tv-volume-using-your-phone/) , there are three options:
1) TV volume is controlled via HDMI CEC using the Chromecast remote
2) TV volume is controlled via Infrared using the Chromecast remote
3) Chromecast volume is controlled via the Chromecast remote
I can't combine those options.
Options 1) and 2) mean I can't use my phone or Google Assistant to change the volume of what I'm playing.
Option 3) means I will lose support for 5.1 surround sound, so this is an option I do not want to use in my home cinema setup.
So apparently, I'm out of luck end of the story.
BUT:
In the Google Home app, I can open my Chromecast and open a remote on my phone and it has volume buttons, with which I could control the volume of my TV (as if I would have pressed the buttons on my Chromecast remote), if I chose option 1) above.
So this is proof that it is indeed possible to control the volume directly from my phone AND have support for 5.1 sound. It's just hidden underneath a lot of clicking around.
I'm not new to programming at all, I have worked as a Java developer in the past for almost a decade), but I'm completely new to Android development.
I want to figure out how feasible it is to write an app which essentially does the following:
The app is in the background, no user interface is visible. It hijacks the physical volume controls of the phone (this is doable at least when you're within an app (aCalendar does this and allows you to scroll with those buttons). It determines whether media is currently streamed to a Google Cast device (which seems to be doable as well), determines whether that device being cast to supports volume control (or determines whether the device is a Chromecast with Google TV, and ends up with the same result) and if yes, it sends a volume up/down event to that Chromecast.
If not, the app just forwards the event to Android and it behaves as normal (e.g. by changing the phone's internal volume, changing the in-call volume, etc.).
More specific questions:
1. Is it possible to intercept volume-button presses in an app which runs in the background (please excuse me if I'm not using correct Android terminology heere)?
2. Is it possible to forward intercepted volume button presses to the OS, so that the default behavior of those buttons doesn't break?
3. Is it possible to determine whether media is being streamed to a cast device?
4. Is it possible to determine whether that device is supporting volume controlling or alternatively determine what model of Chromecast it is?
5. Is it possible to send volume events or remote-key presses to that device, like the Google Home app does?
I know, the question is rather long, but the topic is quite complex on the other hand.
nomike
(11 rep)
Nov 30, 2022, 10:24 PM
• Last activity: Dec 1, 2022, 03:32 AM
1
votes
1
answers
1887
views
Change action of headset button
I recently bought a Samsung Galaxy S Duos 2. When I connect my headset and press the button on the headset, it plays/pauses the music. Actually, I need to record calls, so when I press the headset button, it starts recording, and after hitting it again, stop it. Is there any solution to this kind of...
I recently bought a Samsung Galaxy S Duos 2. When I connect my headset and press the button on the headset, it plays/pauses the music.
Actually, I need to record calls, so when I press the headset button, it starts recording, and after hitting it again, stop it.
Is there any solution to this kind of issue?
HaMeD
(111 rep)
Feb 5, 2014, 06:51 AM
• Last activity: Apr 6, 2022, 04:02 AM
0
votes
0
answers
392
views
Bluetooth media buttons don't work when phone is locked
I have bluetooth headphones (Anker) which include a play/pause button. This button only works when the phone (Nokia 3.1) is unlocked. How can I enable bluetooth media buttons to work when the screen is locked?
I have bluetooth headphones (Anker) which include a play/pause button. This button only works when the phone (Nokia 3.1) is unlocked.
How can I enable bluetooth media buttons to work when the screen is locked?
spraff
(279 rep)
Dec 31, 2019, 08:56 AM
2
votes
0
answers
634
views
ADB shell input keypress play/pause doesn't work in Netflix/Hulu Android apps?
I'm trying to control my Android Box (running Android 6.0, my guess is a modified version of a phone's os, definitely not the official android tv os) via adb for a home automation project & I'm having a bit of trouble with some apps not responding to emulated `keypress` events. So far I've experienc...
I'm trying to control my Android Box (running Android 6.0, my guess is a modified version of a phone's os, definitely not the official android tv os) via adb for a home automation project & I'm having a bit of trouble with some apps not responding to emulated
keypress
events. So far I've experienced the following results:
### Apps used for testing
**Xfinity Stream** - Pause & Play both work (using adb shell input 85
, MEDIA_PLAY_PAUSE keycode)
**Hulu** - Pause works & Play doesn't (again using adb shell input 85
)
**Netflix** - Both Pause & Play don't work (tried both adb shell input 85
& adb shell input 127/126
, PAUSE & PLAY keycodes)
Has anyone else experienced this issue of inconsistency with apps responding to keypresses? Is there any way I can reliably simulate the Play/Pause for all apps?
System-wide the Power & Mute/Unmute work, so I'm curious why the Play/Pause doesn't.
CaffeinatedMike
(121 rep)
Nov 4, 2018, 01:05 AM
• Last activity: Apr 13, 2019, 01:04 AM
0
votes
2
answers
2658
views
Why no consistent headset control?
I'm a recent convert to Android (I have a Moto X on AT&T) and I'm running into a problem that I never had with my iPhones: the button on my headset sometimes works; sometimes doesn't. It upsets me greatly, especially since I recently purchased a $300 set of Bose headphones (Quietcomfort 20) that are...
I'm a recent convert to Android (I have a Moto X on AT&T) and I'm running into a problem that I never had with my iPhones: the button on my headset sometimes works; sometimes doesn't. It upsets me greatly, especially since I recently purchased a $300 set of Bose headphones (Quietcomfort 20) that are specifically made for Android devices. I've even tried three apps from the Google Play store that purport to make the inline control work—none of them do, however. Why is this happening and, more importantly, how can I fix this?
**07/30/2014 EDIT:**
So I've been using this Moto X plus QC20 headphones for several months now, using the recommended [Klipsch Control app](https://play.google.com/store/apps/details?id=com.outsidesource.klipschcontrol) to allow the button on the QC20 to work better. Well, it only seems to work about 50% of the time.
I have yet to figure out what is causing the interference, but some days, the button works perfectly. Other days, it will work, but it may take anywhere from 0 to 15 seconds before a button press is actually registered by the Klipsch Control app. It just seems to be completely random. Still other days, the button doesn't work at all.
It might have something to do with either the time of day and/or when the headphones are plugged in / removed. For example, one morning, it'll work fine. Then I unplug the headphones and go to lunch. Returning from lunch, I plug the headphones back in and the button no longer works. Or the reverse could be true: The button doesn't work before lunch, but works great after.
Because of this odd behavior, I'm sure you can see why I am fearful of unplugging the headphones for the rest of the day once the button on them starts working. I know that if I unplug them and plug them back in later, I only have a 50% chance of the button working.
I hope this makes sense. More importantly, I hope someone can see some sort of pattern that I have yet to see in this behavior to identify the cause(s) of this problem. Any ideas?
Sturm
(163 rep)
Mar 26, 2014, 05:50 PM
• Last activity: Jan 22, 2016, 01:25 PM
4
votes
5
answers
16603
views
How do I turn off speech search in Jelly Bean?
I have a rooted Samsung Galaxy S 2, and last night I updated it to Jelly Bean in hopes that it might solve a few small bugs. Most everything seems to be working as hoped. However, one new inconvenience has popped up. Before the upgrade, I controlled my MP3 player, Poweramp, by pressing the button at...
I have a rooted Samsung Galaxy S 2, and last night I updated it to Jelly Bean in hopes that it might solve a few small bugs.
Most everything seems to be working as hoped. However, one new inconvenience has popped up. Before the upgrade, I controlled my MP3 player, Poweramp, by pressing the button attached to the wire of my headphones. One short press to stop and start songs, one long press to advance forward.
After upgrading, whenever I press the button, the phone goes into voice search mode. That is, it turns on the microphone and is waiting for me to say something to search for using the Google search app.
I have tried to look in system settings, and also in the settings for the Google search widget that's on the top of every screen. However, I can't find any way of turning this off.
I want to give priority to Poweramp so that I can control music playback. How do I get voice search to stop getting in the way?
Questioner
(3789 rep)
Nov 12, 2012, 05:53 AM
• Last activity: Oct 14, 2015, 10:10 PM
0
votes
0
answers
713
views
Android 5.0.1 doesn't handling additional media buttons
when I use android 4.4.4 (Galaxy Nexus) minus button plays next song. plus button plays previous song. But android 5.0 (Nexus 4) no actions for these buttons. if android no longer support these buttons. I wan't to implement myself. How can I receive key event from these media buttons? I've tested th...
when I use android 4.4.4 (Galaxy Nexus) minus button plays next song. plus button plays previous song. But android 5.0 (Nexus 4) no actions for these buttons. if android no longer support these buttons. I wan't to implement myself.
How can I receive key event from these media buttons?
I've tested these methods. But no luck.
AudioManager.registerMediaButtonEventReceiver
MediaSession.setCallback
and

hurelhuyag
(221 rep)
Apr 13, 2015, 02:27 AM
5
votes
2
answers
3084
views
Shuffle Controls work with Android?
I've used an iPod Shuffle for the past year and have come to appreciate the control "pod" on the headphones. [Here's a link][1] to the Sony buds I use. The controls up by the ear work very well on long bike rides or even when lifting at the gym. Don't have to pull the player out of my jersey or shor...
I've used an iPod Shuffle for the past year and have come to appreciate the control "pod" on the headphones. Here's a link to the Sony buds I use. The controls up by the ear work very well on long bike rides or even when lifting at the gym. Don't have to pull the player out of my jersey or shorts pocket to change volume or skip to next song.
Now that I'm using my Android phone for music, I'm wondering if anyone has spotted any little hacks or apps that would enable iPod Shuffle headphones to work with an Android?
Chris_K
(657 rep)
Sep 27, 2010, 02:23 AM
• Last activity: Jan 14, 2013, 10:14 AM
Showing page 1 of 14 total questions