I save some EditText data into shared preferences and then on another activity I show it in TextView (it works - easy) - but when I want to use saved variable in a method it does not work - do you have any idea how to retrieve e.g. IP from shared pref?
sharedpreferences = PreferenceManager.getDefaultSharedPreferences(this);
String AJPI = Text1.getText().toString();
editor.putString(IPv4, AJPI);
editor.commit();