2016-09-09 10 views

答えて

1

次を使用することができます。

public static void loadI() { 
    i = new BigInteger(prefs.getString("I", "0")); 
} 

public static void saveI() { 
    SharedPreferences.Editor editor = prefs.edit(); 
    editor.putString("I", i.toString()); 
    editor.apply(); 
} 
関連する問題