List of usage examples for android.media ToneGenerator TONE_SUP_RINGTONE
int TONE_SUP_RINGTONE
To view the source code for android.media ToneGenerator TONE_SUP_RINGTONE.
Click Source Link
From source file:com.marianhello.bgloc.AbstractLocationProvider.java
/** * Plays debug sound//from www .j a va 2s . com * @param name tone */ protected void startTone(Tone name) { if (toneGenerator == null) return; int tone = 0; int duration = 1000; switch (name) { case BEEP: tone = ToneGenerator.TONE_PROP_BEEP; break; case BEEP_BEEP_BEEP: tone = ToneGenerator.TONE_CDMA_CONFIRM; break; case LONG_BEEP: tone = ToneGenerator.TONE_CDMA_ABBR_ALERT; break; case DOODLY_DOO: tone = ToneGenerator.TONE_CDMA_ALERT_NETWORK_LITE; break; case CHIRP_CHIRP_CHIRP: tone = ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD; break; case DIALTONE: tone = ToneGenerator.TONE_SUP_RINGTONE; break; } toneGenerator.startTone(tone, duration); }
From source file:com.tenforwardconsulting.cordova.bgloc.AbstractLocationProvider.java
/** * Plays debug sound//from w w w . j a va 2s . c om * @param name */ protected void startTone(String name) { int tone = 0; int duration = 1000; if (name.equals("beep")) { tone = ToneGenerator.TONE_PROP_BEEP; } else if (name.equals("beep_beep_beep")) { tone = ToneGenerator.TONE_CDMA_CONFIRM; } else if (name.equals("long_beep")) { tone = ToneGenerator.TONE_CDMA_ABBR_ALERT; } else if (name.equals("doodly_doo")) { tone = ToneGenerator.TONE_CDMA_ALERT_NETWORK_LITE; } else if (name.equals("chirp_chirp_chirp")) { tone = ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD; } else if (name.equals("dialtone")) { tone = ToneGenerator.TONE_SUP_RINGTONE; } toneGenerator.startTone(tone, duration); }
From source file:com.marianhello.cordova.bgloc.LocationUpdateService.java
/** * Plays debug sound//ww w . j a v a 2 s. co m * @param name */ private void startTone(String name) { int tone = 0; int duration = 1000; if (name.equals("beep")) { tone = ToneGenerator.TONE_PROP_BEEP; } else if (name.equals("beep_beep_beep")) { tone = ToneGenerator.TONE_CDMA_CONFIRM; } else if (name.equals("long_beep")) { tone = ToneGenerator.TONE_CDMA_ABBR_ALERT; } else if (name.equals("doodly_doo")) { tone = ToneGenerator.TONE_CDMA_ALERT_NETWORK_LITE; } else if (name.equals("chirp_chirp_chirp")) { tone = ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD; } else if (name.equals("dialtone")) { tone = ToneGenerator.TONE_SUP_RINGTONE; } toneGenerator.startTone(tone, duration); }