Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.media.AudioManager;

public class Main {
    public static void setVibrateOnly(AudioManager audiomanager) {
        audiomanager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
        audiomanager.setVibrateSetting(AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_ON);
    }
}