Automatically Stop Your Music When You Sleep - Micromax A110

As the title says, you set which audio app you want to stop after a set period of time, simple as that.
Plus it has a lower volume option so it can tune it down to silence rather then just abruptly stopping the music.
DOWNLOAD THE APK
PLEASE DONT FORGET TO HIT THANKS!!!
AND A BIG THANKS TO @crazyfool_1
ORIGINAL THREAD - http://forum.xda-developers.com/showthread.php?t=2595326

Related

Play music on earphones while phone on vibrate?

I keep my phone always in vibrate (i like it this way) but everytime I use AudioManager to play music I need to turn the volume up in the system for music to be played through the earphones and then turn it back to vibrate when I finish.
In all the devices I have used before (Symbian, iPhone, simple phones, etc) playing music over the earphones always worked in silent/vibrate mode but in the HTC Touch 3G the speaker/earphone volume seems to be linked to the same control. Is this at all possible? maybe with a reg change?
you should be posting questions in "questions and answers" thread
please take care
for your question keep ring volume zero and system volume full
and set your ring style to "vibrate and ring"
sheennick123456 said:
you should be posting questions in "questions and answers" thread
please take care
for your question keep ring volume zero and system volume full
and set your ring style to "vibrate and ring"
Click to expand...
Click to collapse
thanks for your suggestion but it does not seem to work fully - I did what you said but when I receive text messages or the battery is low the phone still plays these tones in loud mode, i.e. the phone is not silent. I would like to have the phone fully silent and still play music through the earphones (just like every other phone does; symbian, iphone, crappy phones, all phones)
marquk said:
I keep my phone always in vibrate (i like it this way) but everytime I use AudioManager to play music I need to turn the volume up in the system for music to be played through the earphones and then turn it back to vibrate when I finish.
Click to expand...
Click to collapse
If you make a ".MP3" or ".wav" with nothing (no sound) in it.... you're phone should play the sound (nothing!) and vibrate.... and lateron music starts playing again at normal volume.... not so ?
sudist said:
If you make a ".MP3" or ".wav" with nothing (no sound) in it.... you're phone should play the sound (nothing!) and vibrate.... and lateron music starts playing again at normal volume.... not so ?
Click to expand...
Click to collapse
that would probably do it - it just seems like such an effort to do something which is so obvious and all other phones can do
marquk said:
that would probably do it - it just seems like such an effort to do something which is so obvious and all other phones can do
Click to expand...
Click to collapse
There is an App by merlot called mPlug, it might fit your needs http://dev.etechniker.com/index.php?option=com_content&view=article&id=48&Itemid=83
Try changing all of your notification options (in the Sounds & Notifications page) to vibrate only.

[Q] music player that pause when notification goes off

is there a music player out there that doesnt pause while using headphones when a sms/mms/email or when the notification goes off? i had this feature when i had my nexus one with cyanogen froyo last year. i had music player by social soft installed and it didnt pause when my notification went off, it would just ring thru while listing to music. if there isnt a player that does this, can someone make a player that does or a way to disable this little frustrating bug? i know can avoid by setting my notifications to silent but i dont want that. someone please all of us that hate this
I'm confused - do you want a player that STOPS when a notification goes off or one that AUTO RESUMES after a notification is received?
IIRC - Poweramp (my player of choice) auto resumes after a notification, so try that.
Pickx said:
I'm confused - do you want a player that STOPS when a notification goes off or one that AUTO RESUMES after a notification is received?
IIRC - Poweramp (my player of choice) auto resumes after a notification, so try that.
Click to expand...
Click to collapse
"is there a music player out there that doesnt pause while using headphones when a sms/mms/email or when the notification goes off?"
i want a player that doesnt pause or stop

[Q] Tasker and Pandora - Pulling my hair out

I'm trying to find a reliable way to pause/stop Pandora through Tasker and it's driving me batty.
Media Controls -> Pause -> Simulate Media Button works. The issue with it is that it doesn't work in a reliable timeframe. Sometimes it works within a second. Other times, it takes up to 2 minutes. I don't think Tasker is delaying the simulate button , I think Pandora is taking it's sweet time to process it, because if I pause Pandora manually, then it will eventually unpause, as though I sent a Toggle Pause instead of a Pause. If Pandora is already paused and the task triggers, it never unpauses, so that says to me that Pandora is receiving the button, but not immediately processing it.
Using a shell command to issue 'kill com.pandora.android' as root hotboots my phone, so that's out, and while Kill App -> Pandora works to stop the music, it leaves Pandora in a weird, half-running state where it's not actually running, but it still shows up in the notification shade.
Has anyone had any good experience with using the two together?
I have a backup profile here that turns pandora off "stops the apps process" when you unplug your headphones and auto starts pandora when you plug your headphones back in.
Keep in mind i set tasker to do this only for a headset without a mic, you can adjust the settings to your liking
Here is a link
you will need to download Secure Settings from the Market (play store)
Let me know what you think, ill re-upload the tasker backup if the link ever dies (just PM me)

Skip track hold volume buttons

Hi,
I use my nexus 5 to play music in the car. What was really handy was an exposed module that started playing music as soon as the headphone jack was connected. It also jacked the media volume to max, skipping the annoying safe volume warning. While the screen was off holding the volume skipped the track.
Now I have installed android L to give that a go. It is great but this is the only feature that I miss. Now with no xposed I have gone searching for an alternative app. I have tried a few but of the half that actually worked none of them stay working. After some time they no longer skip the track.
I don't know if this is maybe just not possible with a standard app, which is why the xposed module exists. But it would be greatly appreciated if anyone has found of a reliable app which performs this task.
Try Apollo (default CM music app) I'm not sure if it works on Android L but it does have the features your looking for..
It's a framework integration hence the need for Xposed or a custom ROM. Or you could manually decompile and recompile (if you can even get it to work with the L API level).
Or, wait.
How about with Tasker?
Kortxero said:
How about with Tasker?
Click to expand...
Click to collapse
Don't think Tasker can do it. I seem to recall looking into it quite some time ago.
Thanks for the messages. I have tried Apollo but i much prefer the Google play music. Mainly for streaming music. I would have through this feature would be in the official app but i guess not.
Aerowinder said:
Don't think Tasker can do it. I seem to recall looking into it quite some time ago.
Click to expand...
Click to collapse
K I'm making it my mission today to figure this out with Tasker. I've been using tasker for forever and I've got some pretty advanced profiles. I'll figure this out with Google Play Music
Edit: I did find this app. But I'm gonna still try to do this with tasker.
Check out "Pocket Skip Track"
https://play.google.com/store/apps/details?id=com.silentlexx.volbtntrackctrl
#StayParanoid
Sandman-007 said:
K I'm making it my mission today to figure this out with Tasker. I've been using tasker for forever and I've got some pretty advanced profiles. I'll figure this out with Google Play Music
Edit: I did find this app. But I'm gonna still try to do this with tasker.
Check out "Pocket Skip Track"
https://play.google.com/store/apps/details?id=com.silentlexx.volbtntrackctrl
#StayParanoid
Click to expand...
Click to collapse
Sorry for my late reply.
Why couldn't Tasker do it? Just install this plugin and set your profiles. That should work.
I have tried Pocket Skip Track before and it didn't fully work. Just tried it again and chose other music instead of Google music. That seems to work. Let's see if it stays working. It's a shame it's a 2 button press instead of hold it it will do for now
Kortxero said:
Sorry for my late reply.
Why couldn't Tasker do it? Just install this plugin and set your profiles. That should work.
Click to expand...
Click to collapse
Its not that easy bud. Trust me. It seems Tasker can not see the volume keys as hardware keys. Will work on this tonight or tomorrow.
#StayParanoid
There's a reason Xposed or a custom ROM is used to do it lol..
Lethargy said:
There's a reason Xposed or a custom ROM is used to do it lol..
Click to expand...
Click to collapse
You hush now! Persistent bastard at work
#StayParanoid
I know its been a while but I seriously want to get this to work with tasker. Did you get this working?
Poweramp will start music automatically when a headset or bluetooth is connected.
Cataclysm ROM will enable the track skip while long-pressing the volume.
Unfortunately I don't know about how to set the volume to max automatically, but I think you can disable the volume warning message within Cataclysm ROM too.
I'm trying to get this working too in tasker. Hold vol Up to skip forward etc. Can't see how to get tasker to detect this. (basically the back/forward buttons are broken)
made it possible on non rooted phones
try Frinky Music Controller
I always wanted to have an app which controls music with volume keys but i could not find any which does it smoothly. So I developed my own . My app Frinky Music Controller on GOOGLE PLAY controls music with volume keys and smartly controls music volume. It supports more 200 music players including poweramp, musixmatch, doubletwist, la musique, rocket player, blackplayer, pi music player, and Spotify. It works on both rooted and non-rooted phones.
Some features of the app are :
Next Song -- press volume UP key single time to play next song.
Previous Song -- use volume DOWN key to play previous song.
Control Volume -- when we want to control music volume , most of the time we press volume key more than once (next time when you adjust volume , feel it) . So the app uses this tendency of users as a function to control music volume i.e press volume key more than once to adjust volume.
Stop song -- Oh! you play music in your class in absence of professor here comes the professor .... turn off the music quickly by UP+UP+DOWN+DOWN key action (it takes less time than muting the volume and unlocking the screen .
Sleep Timer : Single sleep timer for all your music apps.
Manually control app's service : well to understand this feature you will have to download the app.
It consumes very less amount of ram.
I am new here so can not post link.

[APP] SleepTimer - Simple, Beautiful, Powerful

I should have posted my app in here a long time ago. But I guess it is never too late to post it and hope for some good feedback on how to improve the app even further.
What does SleepTimer do:
It simply gives you a way of stopping your music after x minutes. Set it, and listen to music (or a video) in the evening without having to worry about the music running at 3am and waking you up from your sleep. SleepTimer lets you even do more like turning off wifi and/or mobile data after it turned off the music so you do not get interrupted by those annoying WhatsApp messages .
Scenarios
1. Turning off music after falling asleep
2. Turning off remote music like iTunes Remote, YouTube over ChromeCast, ... (needs some configuration)
3. Like fall asleep while talking with your love but hate high phone bills? Let SleepTimer stop the phone call (needs some configuration)
For most use cases SleepTimer just works. Open it up, set time, start. Done. And it even looks nice (at least I think so).
Only like 6% of the apps need some additional configuration to make them work.
More details (only for those who want to know/read more)
The app uses many different techniques to turn off the music. Audio controls, audio foreground, and even notifications since the newest version. Sadly there are some really bad music players out there that do not support any way of stopping their music except for opening the app and using the stop button in there. In such cases there is only the way of lowering the volume (which I hate ). I hope those developers get to work and implement a proper Music Player. Luckily most apps work though.
About notifications (new since October 2014)
This I am actually pretty proud about and took me a while to implement. And it gives us two new features.
1. Stop music using the notification
So if they have a pause/stop/close control in the notifcation, one can add a custom action in settings, select the app and click on the button in the notification that stops the music. SleepTimer will then use that button in the notification to stop the music. That allows more ways to stop an app and allows to stop apps like iTunes Remote, YouTube with ChromeCast, ...
2. Wait until the end of a track
If enabled, SleepTimer will not turn off the music immediately but wait until the track ends. This is done using the text content of the notification. As soon as the text in a notification changes SleepTimer knows that the track is changing and it will send a stop request immediately. (As well it ignores numbers like 3:12 which is obviously not track information but time information)
Shake extend
If enabled, you can extend the timer by shaking your phone. So you can set some quiet chime to run one minute before the timer runs out. If you can still hear it then just shake to phone to extend the timer.
Root
One can enable root in advanced settings to have even more options when the timer ends. For example turning off the phone or turning on airplane mode.
I hope you do like the app. If not, let me know why. If you have any recommendations or questions, please just ask. As well any ideas how to improve the app further are welcome.
Cheers,
Patrick
First.
Does it support all music & video players? Or only stock players?
exodius48 said:
First.
Does it support all music & video players? Or only stock players?
Click to expand...
Click to collapse
It supports a lot of music and video players. Basically all of them that support the events of Android that good Audio Player apps should support according to Google Many players I tested (Stock, Google Play Music, TuneIn, Spotify, YouTube, ...) worked. And even if they don't work by default, try out adding a custom action in settings in on sleep actions.
Is is possible to turn off the device after x minutes?
Kuri93 said:
Is is possible to turn off the device after x minutes?
Click to expand...
Click to collapse
Yes it is. But only if you have a rooted phone. If you do, then enable root in the advanced settings and then go into the On Sleep Actions settings where you will find the turn off phone option .
I think it would be great idea to add some notification with countdown(few seconds), before phone shutting down.
This is a really neat app! All the other sleep timers I tried didn't feature root options like airplane mode etc. Thanks a lot!
Just a little request: Could you add a screen off option as well? I mean sure, the device will turn off the display afterwards by itself, but I thought it might be useful.
Continuous sleep mode
Hi
I would like to know if the app can be configured so that if I fall asleep with earphones on and wake up and press the play/stop button on the earphones, theaudio I was listening to continues, but is automatically in sleep countdown mode without having to start Sleep Timer again.
This is the way the sleep mode in Smart Audiobooks works and it is very nice.
Thanks.

Categories

Resources