Coder Social home page Coder Social logo

android-sleep-timer's Introduction

A simple Android music player sleep timer. Set the countdown length in hours and minutes, tap start, and then, when the counter reaches zero, all active music playback will be paused.

Built using Android Studio.

This application's launcher icons were generated by Android Asset Studio.

android-sleep-timer's People

Contributors

oldsneerjaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

android-sleep-timer's Issues

About screen

Add an about screen. Include name, year, copyright notice, URL to this project.

show remaining minutes instead of hours Help

hello is a very useful share.
I need your help
how I can show you the minutes in minutes.

private Notification getNotification(Date countdownEnds) {
DateFormat timeFormat = countdownTimeFormatFactory.getTimeFormat();
String countdownEndsString = timeFormat.format(countdownEnds);
String title = resources.getString(R.string.countdown_notification_title);
String text = resources.getString(R.string.countdown_notification_text, countdownEndsString);

15 minutes instead of 15:30

sample
time left to start reservation : 15 minutes

thanks a lot for sharing

Dynamic countdown timer

While a countdown timer is running, replace the set timer view with a dynamic countdown view.

Timer value not saved if Done not pressed

Given the current default timer length is 1 hr 30 mins
And a timer is not currently running
And the set timer view is visible
When I enter 0 in the Hours field
And I press the Start button without pressing Done on the keyboard
Then a timer should be started for 0 hrs 30 mins

However, currently it will launch a timer for 1 hr 30 mins.

App icon

Create an icon for the app. Don't forget to update notification icons too.

Remove settings action

There are no settings to speak of. Remove the settings menu option from the action bar.

Music fade out

Instead of stopping abruptly, the music volume should be lowered gradually until completely silent.

Target Android 4.3

The app has been confirmed to work on Android 4.3, but the manifest should explicitly target API Level 18 (4.3) now that it has been officially released.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.