Exemplo n.º 1
0
  /**
   * 获取系统是否静音,true为静音,暂定系统参数存放在sharePreferences中
   *
   * @return
   */
  public boolean getParameter() {

    return parameterUtil.getAudioParameter();
  }
Exemplo n.º 2
0
 /**
  * 在构造方法里面纯如上下文,并实例化音乐播放器
  *
  * @param context
  */
 public Audiocontrol(Context context) {
   this.context = context;
   mp = new MediaPlayer();
   parameterUtil = ShareParameters.getInstance(context);
 }