Example usage for android.media ToneGenerator TONE_CDMA_ONE_MIN_BEEP

List of usage examples for android.media ToneGenerator TONE_CDMA_ONE_MIN_BEEP

Introduction

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

Prototype

int TONE_CDMA_ONE_MIN_BEEP

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

Click Source Link

Document

CDMA One Min Beep tone: 1150Hz+770Hz 400ms ON

Usage

From source file:com.example.android.camera2video.CameraActivity.java

public static void logEvent(String text) {
    ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_MUSIC, 100);
    //        tg.startTone(ToneGenerator.TONE_CDMA_PIP,150);
    tg.startTone(ToneGenerator.TONE_CDMA_ONE_MIN_BEEP, 300);

    logText(text);/*from  w  w w  .  j  a  v  a 2s  .c o  m*/
}