Showing posts with label Clock App. Show all posts
Showing posts with label Clock App. Show all posts

How to Create an AlertDialog: Clock: Alarm tone

This example will create an AlertDialog similar to the Alert Dialog that displays on the default Google Android Clock app
This was tested on a: Samsung YP-G0, API Level 10, Version 2.6.35




How to Get to the Alert Dialog we are creating
Open Clock (default Google Android app)
Select Alarm tab
Create alarm
Scroll down, and select Alarm tone, and the above Alert Dialog will display.

1. To recreate this AlertDialog, Add a Title that displays "Alarm tone"

2. Add a Set a List of Items to an AlertDialog.Builder, with the CharSequence array of "Sounds, Go to My files".

3. Compile and run!

How to Create an AlertDialog: Clock: Alarm Type

This example will create an AlertDialog similar to the Alert Dialog that displays on the default Google Android Clock app
This was tested on a: Samsung YP-G0, API Level 10, Version 2.6.35




How to Get to the Alert Dialog we are creating
Open Clock (default Google Android app)
Select Alarm tab
Create alarm
Scroll down, and select Alarm type, and the above Alert Dialog will display.

1. To recreate this AlertDialog, Add a Title that displays "Alarm type"

2. Add a List of Items with Radio Buttons, with the CharSequence array of "Melody, Vibration, Vibration and melody, Voice". Add a dismiss() to the onClick.

3. Compile and run!