[APP] SleepTimer - Simple, Beautiful, Powerful - Android Apps and Games

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.

Related

Sleep Timer

Hi guys,
love my Leo the longer I have it.
Just one question: has anybody been able to find a sleep timer for Leo? I always fall asleep listening to music or audio book played with the built-in (music tab) player. On my HD, I used PHM Sleep Timer, ticked the option to suspend the device after timeout, it worked like a charm. Unfortunatelly, this doesn't seem to be working on Leo. I suspect the problem is that the sleep timer switches off the screen. The HD hibernated, music stopped, but Leo can play music also with screen off..
Anybody knows about a software or utility that would be able to stop playing the music by hibernating the device? I know that there are music players with built-in sleep timers but I like the music tab player and don't want to install another player if I can avoid it.
Any suggestions welcome
No suggestions?
Don't know a software that fits your needs yet. But how about quickly putting together a custom playlist before going to sleep? That's what I've done for quite some time even on my far "simpler" device like the N82. Want it to end playing in an hour or so? Just put in songs/audiobooktracks worth an hour and there you go.

[Q] Google Music

1. Sometimes while playing music that is even cache'd to the phone it will stop after every song and I have to turn the screen on for it to advance, is that normal?
2. Is there anyway of getting lock screen controls for it?
Thanks in advance
draztikrhymez said:
1. Sometimes while playing music that is even cache'd to the phone it will stop after every song and I have to turn the screen on for it to advance, is that normal?
2. Is there anyway of getting lock screen controls for it?
Thanks in advance
Click to expand...
Click to collapse
No, it's not. Do you have underclocking profiles for when the screen is off? If so, having it set too low interferes with playing music; bump it up a little. If not, try clearing the application data (settings > manage applications > [find the app] > clear data).
As far as I know, the only way to get lock screen controls is if you use a third party lockscreen (Widgetlocker; others may work too, idk) and install Phantom Music Control.
Simba501 said:
No, it's not. Do you have underclocking profiles for when the screen is off? If so, having it set too low interferes with playing music; bump it up a little. If not, try clearing the application data (settings > manage applications > [find the app] > clear data).
As far as I know, the only way to get lock screen controls is if you use a third party lockscreen (Widgetlocker; others may work too, idk) and install Phantom Music Control.
Click to expand...
Click to collapse
Yea I found out it was juice defender turning my data off with screen off.
Crap still does not go to next track with screen off even on wifi or with data on
What player are you using? Some don't stay on. Try DoubleTwist.
dmunjal said:
What player are you using? Some don't stay on. Try DoubleTwist.
Click to expand...
Click to collapse
Just the Google Music app, poweramp works fine. But I'd rather stream than load my sd card
Bump, does anyone else use Google Music? It keeps sometimes auto advancing the music and others it won't play the next song in the album unless I turn the screen on after the previous track ends. This is with Data always on or not so it's not that. I wish PowerAmp could not just see the Pinned for offline but also read the meta-data
draztikrhymez said:
Bump, does anyone else use Google Music? It keeps sometimes auto advancing the music
Click to expand...
Click to collapse
Yes sometime it will play 20 seconds then jump to next song..
I'm having the same problem with Google Music - music stops playing after each song and resumes when I press the power button. I had this problem unrooted and rooted. I don't know if it only happens with Google Music because that's the only music app I use. Might switch over to the stock music app for a while and see if that's any better.
bryanhayn said:
I'm having the same problem with Google Music - music stops playing after each song and resumes when I press the power button. I had this problem unrooted and rooted. I don't know if it only happens with Google Music because that's the only music app I use. Might switch over to the stock music app for a while and see if that's any better.
Click to expand...
Click to collapse
It's just the Google Music app, poweramp works fine or other apps.
I've been having this problem for months now, and it seems there's no interest in fixing it. It's not just your phone, either--I'm on a T-mo version of this phone and it happens on any rom, rooted or not, and I despise the built-in music app.
dsp4774 said:
I've been having this problem for months now, and it seems there's no interest in fixing it. It's not just your phone, either--I'm on a T-mo version of this phone and it happens on any rom, rooted or not, and I despise the built-in music app.
Click to expand...
Click to collapse
I'm glad I'm not the only one and going crazy haha, hopefully google will get the Google Music app updated quickly or allow 3rd party apps to access the streams

Independent Navigation (or all app) volume control?

The newest versions of Google Maps and Navigation have combined the Navigation volume with the Media Volume. I've read that by rolling back the version of the app to somewhere around 5.7 - 5.8, you can get your separate Nav and Media volume back, however I'd like to keep the latest version. Is there an app somewhere that allows for control of individual application volumes (similar to the newer versions of Windows' volume mixer)? I'd like to be able to separate the voice and media again.
Thanks,
Dan
Audio Control Lite
https://play.google.com/store/apps/details?id=com.matthew.rice.volume.master.lite
Or get the Pro version.
I use this app to keep the damned speaker phone volume being linked the call volume.
xdadevnube said:
Audio Control Lite
https://play.google.com/store/apps/details?id=com.matthew.rice.volume.master.lite
Or get the Pro version.
Click to expand...
Click to collapse
Close but no cigar. This app only allows volume control of existing system functions like media, notifications, ringer, etc. Since the latest versions of Google Maps cram voice navigation and media (music, etc) into the same category, I can't control them independently.
A little back story:
I have a new motorcycle helmet with bluetooth capability. I need to be able to hear the navigation over my music. I'd turn music off and JUST have navigation, BUT... there is a delay between the navigation speaking and the bluetooth realizing it and switching back on from an idle/sleep mode, resulting in me missing directions.
What I want is for pandora to play sweet and soft tunes into my earholes while I'm riding, and for me to be able to crank the navigation volume WAY THE HELL UP so I can hear it. With the audio constantly playing through it I won't have the bluetooth wake-from-rest problem that I have using navigation alone.
pissinguoff247 said:
Close but no cigar. This app only allows volume control of existing system functions like media, notifications, ringer, etc. Since the latest versions of Google Maps cram voice navigation and media (music, etc) into the same category, I can't control them independently.
A little back story:
I have a new motorcycle helmet with bluetooth capability. I need to be able to hear the navigation over my music. I'd turn music off and JUST have navigation, BUT... there is a delay between the navigation speaking and the bluetooth realizing it and switching back on from an idle/sleep mode, resulting in me missing directions.
What I want is for pandora to play sweet and soft tunes into my earholes while I'm riding, and for me to be able to crank the navigation volume WAY THE HELL UP so I can hear it. With the audio constantly playing through it I won't have the bluetooth wake-from-rest problem that I have using navigation alone.
Click to expand...
Click to collapse
It's been awhile, so I don't know if my memory serve me right. But there is a hidden menu for the audio settings for the Charge. If you do a search for the code, once you in, you can set the volume for navigation and media volume to balance out. There should be a threads in this forum for the recommended settings. Good luck.
buhohitr said:
But there is a hidden menu for the audio settings for the Charge
Click to expand...
Click to collapse
The hidden menu option looks like it works (I can still do test mode, screen debugging, etc) but the dialer code for the audio menu no longer works (I'm on FP1, stock debloated).
Back to square one.
I'd rather have the app I'm looking for than try to hack the audio settings.
Well, I have finally found someone with EXACTLY similar problem!
I also ride a motorcycle and also listen to the music while riding and ALSO use Google Navigation!! Long ago there were good days when some version of GMaps/Navigation had a separate volume control but now it's gone.
It is impossible to hear anything with the music playing. I have tried several workarounds - one of them is to use PowerAmp and to force it to pause music every time any "other" sound plays. It didn't work. Or, well, technically it did, but the difference in volume levels between the music and navigation was so high, that I couldn't hear a thing.
I see a lot of people posting thingies like Super-Beats, Super-Duper-Beats, Super-Duper-Awesome-Beats, claiming that this is some sort of "audio driver" that is getting installed "on the system level" so that the sound is better/louder/deeper/crispier. I guess what we need is a similar solution, that would just add more "audio channels" - a separate one for Navigation, probably for smth else.
Is it at all doable?
Cheers'n'thanks!
PS: I am on Samsung Galaxy Nexus, JB AOKP b4
temka said:
Well, I have finally found someone with EXACTLY similar problem!
I also ride a motorcycle and also listen to the music while riding and ALSO use Google Navigation!! Long ago there were good days when some version of GMaps/Navigation had a separate volume control but now it's gone.
It is impossible to hear anything with the music playing. I have tried several workarounds - one of them is to use PowerAmp and to force it to pause music every time any "other" sound plays. It didn't work. Or, well, technically it did, but the difference in volume levels between the music and navigation was so high, that I couldn't hear a thing.
I see a lot of people posting thingies like Super-Beats, Super-Duper-Beats, Super-Duper-Awesome-Beats, claiming that this is some sort of "audio driver" that is getting installed "on the system level" so that the sound is better/louder/deeper/crispier. I guess what we need is a similar solution, that would just add more "audio channels" - a separate one for Navigation, probably for smth else.
Is it at all doable?
Cheers'n'thanks!
PS: I am on Samsung Galaxy Nexus, JB AOKP b4
Click to expand...
Click to collapse
I have found that while I'm listening to my music via the Music Play app, the song volume mutes while making the notification sound (the music does not pause though).
see if that helps.

[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.

Categories

Resources