title: How to display only one time Login and then after start application directly in android
body: <p>I am getting trouble in making only one time login... My aim is first user gets login screen.. If he is new user he will register and then login...from then when ever user starts the application he should directly redirect to main activity that is to skip the login page..please friends help me out from this problem..please post me any tutorials or any code...please tell me how to modify in manifest file also...</p>
  
  <p>I am using like this in login activity but i didn't achieve my task.</p>
  
  <pre><code>SharedPreferences pref;
  SharedPreferences.Editor editor;
  pref = getSharedPreferences("testapp", MODE_PRIVATE);
  editor = pref.edit();
  editor.putString("register","true");
  editor.commit();
  String getStatus=pref.getString("register", "nil");
  if(getStatus.equals("true"))
     // redirect to next activity
  else
     // show registration page again
  </code></pre>