Set which volume to control in your Android app!
If you're writing an Android application that plays sounds but doesn't constantly play sound/music then you've probably run into the same problem that I did where the phone's volume rocker changes the Ringer Volume instead of the Media Volume when pressed no sound is currently playing.
Good news! There's a one-liner that can fix this for you! The following single line sets the volume control stream so that when the volume buttons are pressed within your application it will adjust the Media Volume instead of the Ringer Volume:
this.setVolumeControlStream(AudioManager.STREAM_MUSIC);
AudioManager contains a list of other pertinent constants if you would like the volume rocker to control something other than the Media Volume (ie: Ring, Notification, Alarm or In-Call Volume).
Froyo Update for Droid with FLASH support! (FRG22D)
Verizon is pushing out ANOTHER Froyo update, this time including official Adobe Flash Player support in the package. If you haven't gotten this update yet, you can get it here! You can download the update.zip right here, copy it to your SD card and install it directly!
NOTE: You need to have previously installed Android 2.2 FRG01B to apply this update!
Directions:
(NOTE: Download to your PC and copy to your phone over USB to avoid "Signature verification failed. Installation aborted" issues caused by corrupt downloads!)
1) Download update.zip here!
2) Copy update.zip to the root of your SD card.
3) Shut off your DROID.
4) Turn on your DROID while holding down the physical X key on the keyboard.
5) When you see the exclamation image, like below, press the volume up and camera keys at the same time.

6) Using the D-Pad select the "apply sdcard:update.zip" and press the center (gold) button.
7) Watch the update install and enjoy Android v2.2 with Flash support (FRG22D)!
You can now find Flash from Adobe in the Android Market!
