List of usage examples for android.app Dialog setVolumeControlStream
public final void setVolumeControlStream(int streamType)
From source file:Main.java
public static void showDialogOk(String title, String message, Context context) { if (context != null) { Dialog dlg = new AlertDialog.Builder(context).setTitle(title).setMessage(message) .setPositiveButton("OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { }/* ww w . ja v a 2 s. c om*/ }).create(); dlg.setVolumeControlStream(AudioManager.STREAM_MUSIC); dlg.show(); } }