title: Android Login Activity and Home Activity redirection
body: <p>I am managing the session using shared preference in my application. If the user is logged in it must show the home activity, if not it must show login activity.</p>
  
  <p>With the help of <a href="http://www.androidhive.info/2012/08/android-session-management-using-shared-preferences/">http://www.androidhive.info/2012/08/android-session-management-using-shared-preferences/</a></p>
  
  <p>I tried to create home and redirect to login activity if the user is not logged in.</p>
  
  <p>Is this right?, or is there any better solution.</p>
  
  <p>Thanks,
  Bennet.</p>