FORUMS

Which OEM Would You Like to Help?

Most manufacturers have moments of greatness and moments of decadence, and in the past few years … more

Root T-Mobile S6/Edge on 5.1.1 Without Tripping Knox

If you purchase phones from a carrier, you may be no stranger to the difficulties … more

IonVR Coming Soon, HTC M9 Dev Edition Gets Android 5.1 – XDA TV

The HTC M9 Developer Edition has received Android 5.1. That and … more

Android 5.1.1 Omni ROM For Motorola Xoom

Back in Feb 2011, the Motorola Xoom became the first device to be sold with Android 3.0 … more

[App][2.2+]Ringer V0.61 [18 Jan. 2014] - Smart ringer toggle

276 posts
Thanks Meter: 87
 
By zevele, Recognized Developer on 4th September 2012, 07:01 PM
Post Reply Subscribe to Thread Email Thread
Ringer V0.61


My wife, changed her old Nokia for a Galaxy wonder and missed her "meeting" profile. So I wrote her this small app. I hope you'll find this app useful. It's been tested on my Galaxy S3 and my wife's Galaxy Wonder. Any suggestions and remarks are most welcome.

Main Features:
  • When in silent or vibration mode, if the phone rings a single beep is played (like the "meeting" profile in the old Nokia phone)
  • Replace the default beep with a ringtone from the phone's ringtone list.
  • Control the ringtone volume.
  • Display different notification icons when in normal or silent modes.
  • Automatically set silent mode according to the calendar, with possibility to ignore all day/private/free/tentative events and selecting calendars.
  • Automatically set silent mode when facing up/down. It seems that in order for this feature to work while the screen is off a partial wakelock must be taken - this might lead to higher battery drain (the wakelock can be disabled in the advanced settings section).
  • Automatically restore ringer after a timeout.
  • Play ringtone for selected notifications (both customizable).
  • Play a sound effect when the device is automatically set to silent mode (downloaded from freesfx).
  • A widget to turn on/off the service and switch between normal and silent modes, including:
    • Simple toggle widget.
    • Analog clock widget that shows the next calendar events.
    • Timer widget that sets silent mode to a predetermined period of time.

Future features I may (or may not include):
  • Filter calendar events according to keyword.
  • Mute device a few minutes (configurable) before an event.
  • Filter events according to contacts (Thanks Magissia).
  • Allow selecting different ringtones for notifications according to contact (thanks Variable.Unknown)
  • Profile buttons on the notification for easy profile change (not sure if this could be done for android < 3).
  • Just a thought - flash the flash led for incoming call.
  • Check homepage for new version and present a notification if a new version was found.

Known Issues:
  • None at the moment...

Downloads:
Ringer V0.61

Older versions can be found in the attachments of the following posts:

Ringer V0.6
Ringer V0.55
Ringer V0.54
Ringer V0.4
Ringer V0.3
Ringer V0.2
Ringer V0.1

Video Review (v0.4):
Osas Obaiza from WonderHowTo have made a nice review of the app including the following youtube clip:


Acknowledgments:
  • Sound effects where taken from FreeSFX
Attached Thumbnails
Click image for larger version

Name:	Screen1.jpg
Views:	6137
Size:	38.8 KB
ID:	1321895   Click image for larger version

Name:	Screen2.jpg
Views:	6040
Size:	37.1 KB
ID:	1321896   Click image for larger version

Name:	Screen3.jpg
Views:	5998
Size:	38.8 KB
ID:	1321897   Click image for larger version

Name:	icon.png
Views:	8490
Size:	1.9 KB
ID:	2303169  
Last edited by zevele; 18th January 2014 at 11:51 AM. Reason: Version 0.61
The Following 7 Users Say Thank You to zevele For This Useful Post: [ View ]
 
 
4th September 2012, 07:10 PM |#2  
zevele's Avatar
OP Recognized Developer
Thanks Meter: 87
 
Donate to Me
More
Changelog
Changelog

Code:
Version 0.61
  • In the widget configuration dialog, the timer-picker is now enabled only when "Timed silent widget" is selected.
  • Changed timestamp in the message log to present real date/time string.
  • Fixed wrong gravity sensor polling timeout - causing ringer to never change ringer mode when facing up/down.
  • Fixed crash when ringtone was not found - it will now use a default one in this case, and present an error message.
  • Fixed crash when restoring alarm and no next event is found.
Version 0.6
  • Fixed bug where in some devices the widget configuration appeared before properly placing the widget - causing ringer to crash when pressing the "Okay" button. Due to this bug it was almost impossible to add a widget on these devices.
  • Attempt to fix an issue where Ringer crashed while playing the ring-tone (this is an attempt because the problem is relatively rare and I'm unable to reproduce it on my device...).
  • Fixed issue where on some devices the notification icons appeared too big.
  • Instead of waking up the device every time to check the gravity sensor ("Poll gravity sensor when screen is off"), now keep the device awake all the time using a partial wake lock ("Keep device awake") - I've read somewhere that this might be more battery friendly.
  • Updated SDK to v4.4.2.
  • Added infrastructure for automatic version update.
  • Some more minor bug fixes and code improvements.
Version 0.55
  • Added a message log to be able to better trace issues.
Version 0.54
  • Improved ClockWidget graphics a little bit.
  • Increased ClockWidget base resolution, so it should rescale better now (for launchers that allow rescaling).
  • Added build date to the about information and crash report.
  • Fixed widget size - was 2x1 for some devices.
  • Fixed issue where sometimes device went back to sleep before changing ringer mode.
  • Fixed few crashes when playing ringtone.
Version 0.4
  • Toggle widget now shows the next meeting.
  • Allow to activate also in vibration mode.
  • Show information about last toggle (why and when).
  • Added exception handler, allow user to send crash report.
  • Add beep for all notifications - each application can be set with a separate ringtone and volume (Ringer must be enabled as an accessibility service for this feature).
  • Added timeout dialog feature when muting the device manually (an automatically restore ringer volume after selected timeout).
  • Allow using alarm to wake up device to read the gravity sensor for the face up/down options (may lead to high battery drain).
  • Allow to aggressively restart service (when the service is killed by the OS - may lead to high battery drain).
  • Fix Nexus 4 crash when using automatic silent mode according to calendar.
  • Additional bug fixes and improvements.
Version 0.3
  • Select calendars to watch.
  • Added simple silent mode (no ringing at all).
  • Timer widgets to restore ringer after a set amount of time.
  • Added analog clock widget that shows events from the selected calendars for the next 12 hours.
  • Widgets properties can be modified from the settings window.
  • Double-click widget to open the setting window.
  • Present a list of the active threads/alarms used by the application (for debugging purposes).
  • Various improvements and bug-fixes.
Version 0.2
  • Automatically set silent mode according to the calendar (with possibility to ignore all day/private/free/tentative events).
  • Automatically set silent mode when facing up/down. It seems that in order for this feature to work while the screen is off a partial wakelock must be taken - this might lead to higher battery drain (the wakelock can be disabled in the advanced settings section).
  • Added sound effect when the device is automatically set to silent mode (downloaded from freesfx).
  • Changed the default beep sound (downloaded from freesfx).
  • Added a widget to turn on/off the service and switch between normal and silent modes.
  • Changed the notification icons.
  • Changed minimum android SDK to 2.2
Version 0.1 - initial release.
Attached Files
File Type: apk ringer.apk - [Click for QR Code] (57.2 KB, 115 views)
Last edited by zevele; 18th January 2014 at 11:52 AM. Reason: Version 0.6
5th September 2012, 08:03 AM |#3  
Member
Thanks Meter: 7
 
More
Nice
The Following User Says Thank You to KhI For This Useful Post: [ View ]
11th September 2012, 07:22 PM |#4  
zevele's Avatar
OP Recognized Developer
Thanks Meter: 87
 
Donate to Me
More
New version 0.2
I've added some features to the application - now version 0.2,
  • Automatically set silent mode according to the calendar (with possibility to ignore all day/private/free/tentative events).
  • Automatically set silent mode when facing up/down. It seems that in order for this feature to work while the screen is off a partial wakelock must be taken - this might lead to higher battery drain (the wakelock can be disabled in the advanced settings section).
  • Added sound effect when the device is automatically set to silent mode (downloaded from freesfx).
  • Changed the default beep sound (downloaded from freesfx).
  • Added a widget to turn on/off the service and switch between normal and silent modes.
  • Changed the notification icons.
  • Changed minimum android SDK to 2.2
Attached Files
File Type: apk ringer.apk - [Click for QR Code] (210.8 KB, 67 views)
Last edited by zevele; 11th September 2012 at 08:27 PM.
1st October 2012, 09:57 AM |#5  
zevele's Avatar
OP Recognized Developer
Thanks Meter: 87
 
Donate to Me
More
Version 0.3
Some more features in version 0.3,
  • Select calendars to watch.
  • Added simple silent mode (no ringing at all).
  • Timer widgets to restore ringer after a set amount of time.
  • Added analog clock widget that shows events from the selected calendars for the next 12 hours.
  • Widgets properties can be modified from the settings window.
  • Double-click widget to open the setting window.
  • Present a list of the active threads/alarms used by the application (for debugging purposes).
  • Various improvements and bug-fixes.
Attached Files
File Type: apk ringer.apk - [Click for QR Code] (119.7 KB, 122 views)
Last edited by zevele; 1st October 2012 at 11:56 AM.
5th October 2013, 09:12 AM |#6  
zevele's Avatar
OP Recognized Developer
Thanks Meter: 87
 
Donate to Me
More
Lot's of updates - now version 0.4,
  • Toggle widget now shows the next meeting.
  • Allow to activate also in vibration mode.
  • Show information about last toggle (why and when).
  • Added exception handler, allow user to send crash report.
  • Add beep for all notifications - each application can be set with a separate ringtone and volume (Ringer must be enabled as an accessibility service for this feature).
  • Added timeout dialog feature when muting the device manually (an automatically restore ringer volume after selected timeout).
  • Allow using alarm to wake up device to read the gravity sensor for the face up/down options (may lead to high battery drain).
  • Allow to aggressively restart service (when the service is killed by the OS - may lead to high battery drain).
  • Fix Nexus 4 crash when using automatic silent mode according to calendar.
  • Additional bug fixes and improvements.
Attached Files
File Type: apk ringer.apk - [Click for QR Code] (287.7 KB, 727 views)
The Following 2 Users Say Thank You to zevele For This Useful Post: [ View ]
25th October 2013, 03:58 PM |#7  
reddragon72's Avatar
Senior Member
Flag Houston, because I have a problem
Thanks Meter: 291
 
More
Going to have to try this out. Found a few other apps on the market that kinda do this put pack in to many other features I don't want or need.
The Following User Says Thank You to reddragon72 For This Useful Post: [ View ]
26th October 2013, 07:31 PM |#8  
Member
Flag Waterloo, Ontario
Thanks Meter: 37
 
More
Hey zevele, thanks for making this app. I installed it yesterday before my shift at work - it read from my work-specific calendar and set vibrate mode on/off and the start/end of my shift, worked like a charm! I couldn't ask for a simpler profile switching system.

BTW I'm using it on my HTC One with ViperOne 3.0. Thanks again!
The Following User Says Thank You to Metalsauce For This Useful Post: [ View ]
4th November 2013, 05:43 PM |#9  
Magissia's Avatar
Senior Member
Flag 127.0.0.1
Thanks Meter: 233
 
More
Good idea, i miss this from my Nokia too, i had a software that was used to put the phone in silent when given keyword was found on the calendar, meaning it would never ring when in a meeting if you're not in a said contacts group.

Thanks for your work, will definitively look how your app goes.
The Following User Says Thank You to Magissia For This Useful Post: [ View ]
9th November 2013, 10:39 AM |#10  
zevele's Avatar
OP Recognized Developer
Thanks Meter: 87
 
Donate to Me
More
Quote:
Originally Posted by Magissia

Good idea, i miss this from my Nokia too...

Thanks Magissia,

"white listing" contacts is a nice idea - I might put it in...
I also got a few crash reports which I fixed and now I want to check it a little bit - I'll probably release the new version next week.

Z.
Post Reply Subscribe to Thread

Tags
android, meeting profile, ringtone, single beep
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes