SharedPreferences sp;
Editor editor;

private void savePreference(String Key_Name, int valLocal) /// Key_Name = "Local"   valLocal = 0  USA (Prepaid Area) 1 Korea 2 Other or only local dialer
{
  sp = getSharedPreferences("prefs", 0);
  editor = sp.edit();
  editor.putInt(Key_Name, valLocal);
  editor.commit();
}
private int getPreference(String Key_Name)
{
   sp = getSharedPreferences("prefs", 0);
   int valLocal = sp.getInt(Key_Name, 1);
   return valLocal;