title: Android shared preferences retrieve username and password
body: <p>Im having trouble with retrieving username and password from android's sharedpreferences. I use this code to save the username and pass </p>
  
  <pre><code>SharedPreferences prefs=getSharedPreferences("File", 0);
      SharedPreferences.Editor e=  prefs.edit();
         e.putString("Email", "example@example.com").putString("Password", "password1");
         e.commit();
         e.putString("Email", "example_2@example.com").putString("Password", "password2");
         e.commit();
         String s=prefs.getString("Email","not found");
  </code></pre>
  
  <p>But i dont know how to retrieve information for user to log in. Can anybody help me figure out</p>