Files
sweet_dreams/SweetDreamsLite/ChangeLog
ricky barrette feca7cfd14 i have create a simple layout that has a button, a text view and a seekbar.
i have created an onclicklistener for the play_pause button. that when click it modifies the isPlaying boolean, and switches the image button background based on isPlaying boolean.

i have created an on seekbarChangedListener that when the seek bar is adjusted by the user, the audio stream volume is adjusted with it.

i have created the methods playSound, and stopSound. they are not yet implemented, but they will be used.

i have added the river.mp3 to the res/raw dir and used MediaPlayer to play it though the speaker. i have set the stream to AudioManaer.STREAM_MUSIC and have added life cycle methods.
i have added android:screenOrientation="portrait" . everything is test and working.

i incremented the build number from 0.0.0 b0 to 0.0.1 b1

i created settings.xml and Settings.java to create an Settings shared_prefs activity.
i created sounds.xml which contains an array list of sounds
in WhiteNoise.java i added an options menu with only one entry call options. when the user selects options the Settings.java activity is started.

settings activity is done now. it displays the current sound track preference as a summary when the activity loads and changes the the summary to what ever the user chooses.

incremented the build number from 0.0.1 b1 to 0.0.2 b2

loads and plays sounds based on shared_prefs settings

incremented the build number from 0.0.2 b2 to 0.0.3 b3

i added ads (we need to pick a name for the application and get an ad id, as im borrowing exalted dice's)
i added a textview above the play_pause button to display the track's title, it is updated in onResume()
i added a line in onCreate the save the Stream volume when the activity loads, so we can restore the stream volume levels back to what they were when we started in onDestroy()
i set the install location to auto for froyo
i added a textview under the play_pause_button and called it time_left. it will display how much time is left if timer is enabled
i added a check box preference that enables exit on finish. when the timer finishes the application will exit if enabled.
i have created the class Timer.java which will handle the timing for the shut off timer and updating the current time left.

incremented the build number from 0.0.3 b3 to 0.0.4 b4

also note that the sound track mp3's need to be edited for more seamless looping

i added a method called padSeconds in the internal class timer that pads the seconds output to be more formal.

i created the class TimePickerPreference.java which will be a time picker Preference used in the Settings.java activity
tested and working.

incremented the build number from 0.0.4 b4 to 0.0.5 b5

note time picker preference still needs to be fixed (only loading initial values)

in TimePickerPreference.java i fixed time picker bug where every time the settings activity was displayed, 
the timer was set to 5 minutes. i fixed it y removing the calls timepicker.setHour() and timepicker.setMinute in onCreateView()

fixed bug mentioned in previous commit (previous fix worked on the emulator, but not an actual device)

***************************************************************************************************
the above change log is from all the previous commits as of 7/31/2010

due to a committing error, i think due to the fact that i renamed the project and its folder, i am going to disconnect this project and recommit it under the new name

when i hit commit, svn presented an error stating that WhiteNoiseFull was not up to date. i then proceeded to update the
project and try to re commit. but after i updated, i noticed that this project had some how absorbed all the other projects in the Trunk, while leaving the original copies on the server
untouched. 


the following changes were made before i made my commit.
***************************************************************************************************

i renamed the application from WhiteNoise to SweetSoundsLite. I have left the name as Sweet Sounds in the strings.xml because there is no full version being released at this time.

i added more comments to TimePickerPreference.java

in SweetSounds.java i created the method stopPlaying() which replaced common code blocks though out the file, and fixed bug: when you press menu -> options the sound track
would be stoped, but not the timer

i have also edited the sounds... i have the original sounds backed up on my computer
2010-07-31 15:28:45 +00:00

4.4 KiB