I want to know if some key-value pair already exists in shared preferences or not.
sharedPref=getApplicationContext().getSharedPreferences("sharedf",Context.MODE_PRIVATE);
editor=sharedPref.edit();
editor.putString("secretKey",e1.getText().toString());
editor.commit();
Now I want to check if secretKey already exists or not in the sharedprefrences.