in my app i am storing a value in Shared Preference and it gets stored successfully.
Following is a piece of my code
SharedPreferences prefs = getSharedPreferences( "idValue", 0 );
Editor editor = prefs.edit();
editor.putString( "idValue", chap.getid() );
editor.commit();
Log.e("Shared Pref",""+chap.getid());
Now i want to use this value in some other activities with a condition whether it is null or has an value.
How to get this value in another activity…..
You can simply use
in any activity you need