get Ring Volume - Android android.provider

Android examples for android.provider:Settings

Description

get Ring Volume

Demo Code

import android.content.Context;
import android.provider.Settings;

public class Main {

  public static int getRingVolume(Context context) {
    return Settings.System.getInt(context.getContentResolver(), Settings.System.VOLUME_RING, 0);
  }//from  w  ww .j a  v  a2  s .co  m

}

Related Tutorials