Code example for AudioManager

Methods: getVibrateSetting

0
    	} 
    	return 0; 
	} 
	 
	public Boolean isVBEnabled(){
		int vs	=	mAudioManager.getVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER);
		if(vs==AudioManager.VIBRATE_SETTING_ON)
			return true; 
		else 
			return false; 
	} 
 
	/*********************  Volume  *********************/ 
    private void setVolume(int stream,int vol){
    	mAudioManager.setStreamVolume(stream, vol, 0);
    } 
     
    private int getVolume(int stream){
    	int vol	=	mAudioManager.getStreamVolume(stream);
    	return vol;
    }