Question Change Volume bar default operation - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

Hey!
Just wondering..... I have a poco f3. When I use the volume button it changes the media volume even if I'm not listening/watching any media?
I'd prefer it to change notification/ringtone volume unless I'm actually watching or listening to something. My p20 pro (previous phone used to do that)
Any suggestions? Many thanks

Pretty sure there is a setting in MIUI. Is it in sound settings?

Yeah, I thought there would be! I can't find anything?

This was a change that happened with Android 9 if I'm not mistaken.

Ahhh, thanks. Any idea of it can be changed?

Maybe a custom ROM will have that feature. Back then before Android 9 was launched, the custom ROM I used had this feature.
Other than a custom ROM, perhaps you could try the options here?

Related

Volume Keys Feature

Hey all, I am an iphone convert. Recently purchased the HTC outright. Great phone. Coming from a jailbroken iphone there are a couple of features that I miss. They're not deal breakers but they are really convenient in my opinion..
I love using my phones as a media player. And although there's no equalizer on the desire, I think the quality is pretty good assuming you're using reasonable earphones.
I found an app on cydia for iphone which reassigned my volume rocker.
If I just tap the volume up or down, it changed the volume as normal.
If I hold the volume key up or down, it skipped the track forwards or backwards.
I was hopeful that a developer might see this as a good addition to the Desire and be able to emulate such a function for the volume keys.
Thanks!
Hmm i'm guessing that you don't use the stock headphones with inline controls then. I'm hoping when the device is rooted a lot of hacks should surface. I want to use the optical trackpad press to bring up the lockscreen for instance. And a flashlight app that actually uses the flash and not a bright white screen lol.
nope. Those earphones are way to large for my ears! I can't even fit the buggers in!
But I agree, being able to wake the phone with the trackpad is a must.
Here's hoping sooner rather than later
ephumuris said:
Hmm i'm guessing that you don't use the stock headphones with inline controls then. I'm hoping when the device is rooted a lot of hacks should surface. I want to use the optical trackpad press to bring up the lockscreen for instance. And a flashlight app that actually uses the flash and not a bright white screen lol.
Click to expand...
Click to collapse
drewsta_j said:
But I agree, being able to wake the phone with the trackpad is a must.
Click to expand...
Click to collapse
Grab the application "No Lock" from the market - works perfectly on my Desire.
drewsta_j said:
Hey all, I am an iphone convert.
Click to expand...
Click to collapse
drewsta_j said:
If I just tap the volume up or down, it changed the volume as normal.
If I hold the volume key up or down, it skipped the track forwards or backwards.
Click to expand...
Click to collapse
Excellent idea. There is currently application with proves key rebinding is possible without root (Tasker), unfortunately it doesn't have volume keys and I do not have time now to try implementing a solution for this.
I will personally look into this in a month (extremely busy atm) as a hobby, and hopefully the device will have been rooted by then making this definitely possible. I'm not an amazing dev., but I can hack around to make things work
Went from Dream to iphone, but Android pulled me back with the Desire.
We are all waiting for root indeed! Shouldn't take too long I reckon. It is definately a must to wake up on menu/trackpad or home key. Anyone has some ideas?
No lock also bypasses the lockpattern, too bad. And it looks as if it runs in the background and only turns off the screen. Feels like it wil drain the battery, but maybe I am mistaking.
NoLock is okay, but any key turns the screen on. This could be a pain if it's in your pocket and you accidentally press the volume keys, for instance.
When I had the tweak that allowed me to skip tracks with the volume keys, it took away most of my needs to turn the screen simply to skip tracks. This helped save the battery.
Not only that, it also helps if you are running a different application. You wouldn't need to go back to the home screen to use the widget.
Just a couple more benefits
Hi all,
My 1st post on xda
I'm no developer, and haven't coded anything since ages, but after some digging I think may be possible to implement such a feature.
According to the android developer reference on (sorry, I'm a new user so I can't post links)
KeyEvent
KeyEvent.Callback #onKeyDown
Dialog #onKeyDown
And those forums (search for this on google)
anddev org disable_volume_keys-t10191.html
google groups android developers Long-press hard volume keys
Tell me if I'm wrong, but those links indicate that it is possible to replace the behavior of a key press ("intercepting" it before it gets interpreted by the system that changes the volume setting). Then once you intercepted it, you can check if it is a normal key press (short), in which case you would still allow to "forward" the information to the system. BUT, if you detected that it is a long press, you activate the action "next track" and do not forward the volume information to the system.
Something like (syntax is nor correct, of course)
Code:
public boolean onKeyDown(int keyCode, KeyEvent event) // the way I understand this line, it will replace the default behavior of the onKeyDown routine
{
if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN // if the key pressed down is vol_down
...
if the key press is long // don't know the code for that
do the action for next track
return true; // means that you do not forward the keypress to the system
else // if the keypress is not long
return false; // you have not intercepted the keypress, so you forward it to the system
...
else return super.onKeyDown(keyCode, event); // if any other key is pressed, forward it directly
}
Any opinions on that? Is the xda forum the right place to talk about code, or are other forums more suited to discuss about that?
Interesting..
If the code looks like that I might have to take up a hobby in learning how to code. It doesn't appear to be tooo difficult at all.
It does look like you may be on the right track there Bricolo_fr..
Cheers for looking into it.
Drew.
I see a potential problem though. You'd need to know what media playback program is actually being used, and it needs to support receiving messages from other programs so that you can tell it to skip to the next track. This might even require different coding for every player program available, if they receive messages in different ways.
In other words, you could end up having to write your own media player program.
FloatingFatMan said:
I see a potential problem though. You'd need to know what media playback program is actually being used, and it needs to support receiving messages from other programs so that you can tell it to skip to the next track. This might even require different coding for every player program available, if they receive messages in different ways.
In other words, you could end up having to write your own media player program.
Click to expand...
Click to collapse
Ok, well surely there must be a simple solution?
Why can't we say create an app where you could select which media player you are using (only have a few of the main ones) then we would be able to amend the code as per which option they select before it was implemented?
drewsta_j said:
Ok, well surely there must be a simple solution?
Why can't we say create an app where you could select which media player you are using (only have a few of the main ones) then we would be able to amend the code as per which option they select before it was implemented?
Click to expand...
Click to collapse
Sure you can do that; buy you'd have to examine each of those apps, work out if they accept messages, and work out what format said messages need to actually be in.
One would hope they would implement standard interfaces, but that's all it is, a hope.
Well personally, I use the stock player. It ain't the best but it gets the job done. So if it was just created for that at least I'd be more than happy
Thanks for the comments.
FloatingFatMan you are indeed right. I didn't know that all media players don't behave the same. So not all of them accept incoming messages, and not with the same protocol? Hum...
Does that mean that widgets for media player control are only compatible with a specific media player, also?
About the code itself, do you guys think can work?
I'm quite new here, is xda a place about writing code or should we discuss that in another place where people are more used to that?
Cheers
now that the Desire can be rooted...
on the Nexus one (probably other devices too) with the cyanogenmod roms, this feature is availale. just long press vol+ or vol- and you get next/prev track
can this be done with a moded rom on the desire also? what kind of changes need to be applied to the stock rom to add this function?
Bricolo_fr said:
now that the Desire can be rooted...
on the Nexus one (probably other devices too) with the cyanogenmod roms, this feature is availale. just long press vol+ or vol- and you get next/prev track
can this be done with a moded rom on the desire also? what kind of changes need to be applied to the stock rom to add this function?
Click to expand...
Click to collapse
Agreed. am really liking forward to his feature now the phone is rooted.
ephumuris said:
Hmm i'm guessing that you don't use the stock headphones with inline controls then. I'm hoping when the device is rooted a lot of hacks should surface. I want to use the optical trackpad press to bring up the lockscreen for instance. And a flashlight app that actually uses the flash and not a bright white screen lol.
Click to expand...
Click to collapse
You can try Flashapp on the Market. I can post URL yet but you'll find it...]
Another excellent example that long press on a hardkey can be implemented without root is Quick Settings (great app btw): it can be brought up anytime, no matter what app you are running by longpressing the search key.
Did anyone ever get any further with this?
ephumuris said:
And a flashlight app that actually uses the flash and not a bright white screen lol.
Click to expand...
Click to collapse
Apologies as I know it's a bit OT for this thread, but just wanted to make sure you were aware of the LED Desire Light app (http://www.appbrain.com/app/nostovic.android.desire.ledLight) - the latest version even has a nice wee widget to put the flash on/off, but the main app also offers SOS and turning text into Morse code!!
oxygen mod - based on cyanogen has:
* Skip tracks with long press volume up/down
http://forum.xda-developers.com/showthread.php?t=829734
update: it's a cyanogen feature, so all mods based on cyanogen have this
it works with screen locked.

[Q] Ringtone and Notification sounds

I'm trying to connect the two sounds because it's really annoying having the ringtone volume on the lowest level and having a message come in that's about as loud as it gets and its a hassle having to change both all the time. I used to use Quick settings but that doesn't seem to do the trick anymore so I was wondering how to go about it. Any hidden settings I haven't uncovered yet? Any good apps to recommend? Also how can I shut the camera shutter sound because that's also annoying...
On CM you can link them both together in the Volume adjustment panel from within Settings - Sound
but the CWM is a nightly so its not stable right? cuz I just came from SGS where I had Darkyy's ROM and don't really know what CWM is all about but from what I found in my brief search it said that nightlies are not the most stable ones
There are a lot of Profile Managers in the Play Store that should do the job. I use e. g. "Profiles" from Egg'n Stone and it works.
Hotas said:
There are a lot of Profile Managers in the Play Store that should do the job. I use e. g. "Profiles" from Egg'n Stone and it works.
Click to expand...
Click to collapse
would that affect any of my other settins? meaning would I have to create profiles for everything I want and change them all the time or can I just change that one thing and carry on using the phone as before? cuz the last profiles I remember are on the old feature phones. never used one on a smartphone
Sorry, you are right. The Profile Managers I know and talked about support profiles for a lot of settings. They are not just linking the Sounds you mentioned. So my answer was not exactely related to your specific needs.
Hotas said:
Sorry, you are right. The Profile Managers I know and talked about support profiles for a lot of settings. They are not just linking the Sounds you mentioned. So my answer was not exactely related to your specific needs.
Click to expand...
Click to collapse
thanks anyway. any other ideas? this is really bugging me and I believe I'm not the only one...

More volume levels on Nexus 5X.

Hi,
I'm really mad at volume levels and I want to have more. How do I do this? I'm rooted, busybox is installed, TWRP and it's all on stock 7.0. I'm not interested in any apps that I have to launch to change volume, I just want to add more volume levels. Can you help me?
Razeer123 said:
Hi,
I'm really mad at volume levels and I want to have more. How do I do this? I'm rooted, busybox is installed, TWRP and it's all on stock 7.0. I'm not interested in any apps that I have to launch to change volume, I just want to add more volume levels. Can you help me?
Click to expand...
Click to collapse
Are you looking for louder volume or finer adjustments?
I would recommend that you take a look at this thread if you want to change anything involving sound.
http://forum.xda-developers.com/nexus-5x/themes-apps/mod-surround-sound-testers-t3252659
Tulsadiver said:
Are you looking for louder volume or finer adjustments?
Click to expand...
Click to collapse
Im looking for finer adjustments.

Volume Buttons to change Songs on Stock

Hello, before I flash back to stock ROM, I wanted to know if there was a way to change song tracks while the screen is off using the volume buttons. I posted a screenshot of the option that I'm talking about that is on the latest release of purenexus. Thank you in advance!
I don't think that function is built into stock. There is an app called Pocket Skip Track but it's made for Power Amp, although it apparently does work with some other music players. If that feature is a dealbreaker you might want to stay on PureNexus.
jhs39 said:
I don't think that function is built into stock. There is an app called Pocket Skip Track but it's made for Power Amp, although it apparently does work with some other music players. If that feature is a dealbreaker you might want to stay on PureNexus.
Click to expand...
Click to collapse
Yeah I'm well aware that it isn't a feature on stock Android. And I might have to give it a try cause I already pulled the trigger with going back to stock for now
oG Admire said:
Yeah I'm well aware that it isn't a feature on stock Android. And I might have to give it a try cause I already pulled the trigger with going back to stock for now
Click to expand...
Click to collapse
Why did you go back to stock if you were happy on Pure Nexus?

MediaPad M2 8.0 No Boot Sound

I hope someone can help. I restored it with an official rom but for some reason there is no sound as it boots up. Is there any way to enable this? Thanks for any help.
dinkmack said:
I hope someone can help. I restored it with an official rom but for some reason there is no sound as it boots up. Is there any way to enable this? Thanks for any help.
Click to expand...
Click to collapse
Hello dinkmack,
Indeed, at least two issues so far are related to sound in 3 last Android 6.0 OTA updates for M2-801L model (EU versions) :
- No boot sound anymore, even with all sound options activated (only a small vibration is emitted during starting logo screen
- Touch sound / keyboard typing sound remains active even though all related options have been deactivated.
For both of the above at least, I'm still looking for (official) solutions / workarounds, but none found so far.
If found, I'll provide another feedback here.
Hope this helps anyhow.
Have a nice day.
Kind Regards.
mas_tech99 said:
Hello dinkmack,
Indeed, at least two issues so far are related to sound in 3 last Android 6.0 OTA updates for M2-801L model (EU versions) :
- No boot sound anymore, even with all sound options activated (only a small vibration is emitted during starting logo screen
- Touch sound / keyboard typing sound remains active even though all related options have been deactivated.
For both of the above at least, I'm still looking for (official) solutions / workarounds, but none found so far.
If found, I'll provide another feedback here.
Hope this helps anyhow.
Have a nice day.
Kind Regards.
Click to expand...
Click to collapse
What keyboard are u using? I use the huawei swiftkey the stock in the rom, and if I remember right you must go to the keyboard settings to inactive the sound.
RE : MediaPad M2 8.0 No Boot Sound
omaga said:
What keyboard are u using? I use the huawei swiftkey the stock in the rom, and if I remember right you must go to the keyboard settings to inactive the sound.
Click to expand...
Click to collapse
Hello Omaga,
All options checked several times but without success so far.
Check the pic : https://ibb.co/m2QxLp
Any other place I might check those options?
Have a nice day.
Kind Regards.

Categories

Resources