Android Open Source - Sound alarm SunAlarm






Project Summary

Adds a dawn simulator to DeskClock clock from Android 4.2. Lights up the MiLight LED lightbulb with sunset colors for a specified number of minutes, then plays back the alarm sound and displays a standard snooze/dismiss dialog. Lightbulb base IP is hardcoded as 192.168.1.100.

Web Site / Source Repository

SunAlarm is hosted in the following web site
https://github.com/githubbar/SunAlarm

If you think the Android project SunAlarm listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Project Detail

The following table is the detailed list of SunAlarm.

ItemValue
Java File Count29
Supported screen sizes[sw600dphdpi, mdpi, xxhdpi, hdpi, xhdpi, xlargenodpi, xlargemdpi, sw600dpmdpi, nodpi, sw600dpxhdpi, xlargehdpi]
Target SDK Version19
Minimum SDK Version19
Activity Count7
Required Permissionsandroid.permission.DEVICE_POWER
android.permission.DISABLE_KEYGUARD
android.permission.INTERNET
android.permission.READ_EXTERNAL_STORAGE
android.permission.READ_PHONE_STATE
android.permission.RECEIVE_BOOT_COMPLETED
android.permission.VIBRATE
android.permission.WAKE_LOCK
android.permission.WRITE_SETTINGS
Asset File Namesassets\fonts\Clockopia.ttf
Raw File Namesres\raw\fallbackring.ogg
res\raw\in_call_alarm.ogg




License

The license information of SunAlarm is as follows:

Apache License

Resource Files

There are 47 image files in SunAlarm. The names of the image files are listed as follows.

alarm_alert_fullscreen_bg.9.png
appwidget_clock_dial.png
appwidget_clock_hour.png
appwidget_clock_minute.png
background_protector.png
btn_in_call_round_disable.png
btn_in_call_round_disable_focused.png
btn_in_call_round_normal.png
btn_in_call_round_pressed.png
btn_in_call_round_selected.png
btn_strip_trans_left_normal.9.png
btn_strip_trans_left_pressed.9.png
btn_strip_trans_left_selected.9.png
btn_strip_trans_middle_normal.9.png
btn_strip_trans_middle_pressed.9.png
btn_strip_trans_middle_selected.9.png
btn_strip_trans_right_normal.9.png
btn_strip_trans_right_pressed.9.png
btn_strip_trans_right_selected.9.png
dialog.9.png
ic_clock_add_alarm.png
ic_clock_add_alarm_selected.png
ic_clock_alarm_off.png
ic_clock_alarm_on.png
ic_clock_alarm_selected.png
ic_clock_brightness.png
ic_clock_strip_alarm.png
ic_clock_strip_desk_clock.png
ic_clock_strip_gallery.png
ic_clock_strip_home.png
ic_clock_strip_music.png
ic_colorpicker_swatch_selected.png
ic_dialog_time.png
ic_discard_holo_dark.png
ic_lock_idle_alarm.png
ic_lock_idle_alarm_saver.png
ic_lock_idle_alarm_saver_dim.png
ic_menu_add.png
ic_menu_alarms.png
ic_menu_clock_face.png
ic_menu_desk_clock.png
ic_menu_done_holo_dark.png
ic_round_brightness.png
ic_setalarm_holo_dark.png
list_selector_background_pressed.9.png
preview.png
stat_notify_alarm.png

The following screenshort is generated from the image listed above.

null




Java Source Files

com.sunny.sunalarm.AlarmAlertFullScreen.java
com.sunny.sunalarm.AlarmAlertWakeLock.java
com.sunny.sunalarm.AlarmAlert.java
com.sunny.sunalarm.AlarmClock.java
com.sunny.sunalarm.AlarmDatabaseHelper.java
com.sunny.sunalarm.AlarmInitReceiver.java
com.sunny.sunalarm.AlarmKlaxon.java
com.sunny.sunalarm.AlarmPreference.java
com.sunny.sunalarm.AlarmProvider.java
com.sunny.sunalarm.AlarmReceiver.java
com.sunny.sunalarm.Alarm.java
com.sunny.sunalarm.Alarms.java
com.sunny.sunalarm.AndroidClockTextView.java
com.sunny.sunalarm.AsyncHandler.java
com.sunny.sunalarm.ColorPickerDialog.java
com.sunny.sunalarm.ColorPickerPalette.java
com.sunny.sunalarm.ColorPickerSwatch.java
com.sunny.sunalarm.ColorStateDrawable.java
com.sunny.sunalarm.DeskClock.java
com.sunny.sunalarm.DigitalClock.java
com.sunny.sunalarm.DontPressWithParentLayout.java
com.sunny.sunalarm.HsvColorComparator.java
com.sunny.sunalarm.Log.java
com.sunny.sunalarm.RepeatPreference.java
com.sunny.sunalarm.Screensaver.java
com.sunny.sunalarm.SetAlarm.java
com.sunny.sunalarm.SettingsActivity.java
com.sunny.sunalarm.SpinnerPreference.java
com.sunny.sunalarm.ToastMaster.java