public class AudioCtrl
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BUNDLE_ERROR_CODE |
static java.lang.String |
BUNDLE_ERROR_MSG |
static int |
RESULT_CODE_ERROR |
static int |
RESULT_CODE_SUCCESS |
| Constructor and Description |
|---|
AudioCtrl(android.content.Context context)
Instantiates a new Audio ctrl.
|
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
setDefaultNotificationSound(java.lang.String data)
Set default notification sound bundle.
|
android.os.Bundle |
setDialPadTouchTones(boolean enabled)
Set dial pad touch tones bundle.
|
android.os.Bundle |
setRingtoneSound(java.lang.String data)
Set ringtone sound bundle.
|
android.os.Bundle |
setTouchSound(boolean enabled)
Set touch sound bundle.
|
android.os.Bundle |
setVibrateOnTouch(boolean enabled)
Set vibrate on touch bundle.
|
android.os.Bundle |
setVolume(int type,
int volumeValue)
Set Volume
|
public static final java.lang.String BUNDLE_ERROR_CODE
public static final java.lang.String BUNDLE_ERROR_MSG
public static final int RESULT_CODE_ERROR
public static final int RESULT_CODE_SUCCESS
public AudioCtrl(android.content.Context context)
context - the contextpublic android.os.Bundle setDefaultNotificationSound(java.lang.String data)
data - Sound name (String)public android.os.Bundle setRingtoneSound(java.lang.String data)
data - Sound name (String)public android.os.Bundle setDialPadTouchTones(boolean enabled)
enabled - true or false (boolean)public android.os.Bundle setTouchSound(boolean enabled)
enabled - true or false (boolean)public android.os.Bundle setVibrateOnTouch(boolean enabled)
enabled - true for false (boolean)public android.os.Bundle setVolume(int type,
int volumeValue)
type - 2:Ring, 3:Media, 4:Alarm (int)volumeValue - 0-100 (int)