title: how to save login details of android app?
body: <p>I have a android application which needs username and password to login. I need to save the username and password locally in phone or somewhere to use them when the user opens the app next time and  logins to the app automatically without showing the login screen</p>
  
  <pre><code>    EditText input1 = (EditText) findViewById(R.id.usertext);
      EditText input2 = (EditText) findViewById(R.id.Passtext);
      String username = input1.getText().toString();
      String password = input2.getText().toString();
  </code></pre>
  
  <p>If the login is successful, it will call the activity through intent.</p>