SharedPreferences gear



  • I want to convey the meaning between dialogue and fragment, I keep it that way.

    setNumbers(view.getContext(), holder.mBoundString);
    

    public static String setNumbers(Context context, String numbers) {
    PreferenceManager.getDefaultSharedPreferences(context).edit()
    .putString(PREF_NUMB_NUMBERS, numbers).apply();

    Log.i(PREF_NUMB_NUMBERS, "QueryTextSubmit: " + numbers);
    return numbers;
    

    }

    Privacy

    String numbers = NumbSheetDialogView.setNumbers(getActivity(), "1");

    Value doesn't come



  • System.out.println(PreferenceManager.getDefaultSharedPreferences(context).getString(PREF_NUMB_NUMBERS, "DEFAULT_VALUE"));
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2