Example usage for android.media ToneGenerator MAX_VOLUME

List of usage examples for android.media ToneGenerator MAX_VOLUME

Introduction

In this page you can find the example usage for android.media ToneGenerator MAX_VOLUME.

Prototype

int MAX_VOLUME

To view the source code for android.media ToneGenerator MAX_VOLUME.

Click Source Link

Document

Maximum volume, for use with #ToneGenerator(int,int)

Usage

From source file:Main.java

public static void startPipTone(int duration) {
    new ToneGenerator(AudioManager.STREAM_MUSIC, ToneGenerator.MAX_VOLUME)
            .startTone(ToneGenerator.TONE_CDMA_PIP, duration);
}