get Custom Number Preference - Android android.content

Android examples for android.content:SharedPreferences

Description

get Custom Number Preference

Demo Code

import android.content.Context;

public class Main {

  public static String getCustNoPreference(Context paramContext, String paramString1, String paramString2) {
    return paramContext.getSharedPreferences("com.java2s.clientcustno", 0).getString(paramString1, paramString2);
  }/*  w ww .j  ava  2  s .  com*/

}

Related Tutorials