Skip to content

Commit

Permalink
Enable hardware volume control buttons in DroidGap applications
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Feb 2, 2011
1 parent f220489 commit 3c9089b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/src/com/phonegap/DroidGap.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Picture;
import android.media.AudioManager;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
Expand Down Expand Up @@ -179,6 +180,8 @@ public void onCreate(Bundle savedInstanceState) {
this.init();
}
}
// Setup the hardware volume controls to handle volume control
setVolumeControlStream(AudioManager.STREAM_MUSIC);
}

/**
Expand Down

0 comments on commit 3c9089b

Please sign in to comment.