how can i check session and redirect in android?
<p>In  my application, a user can post comments only after logging in. So when a user clicks on comment activity, he/she will be redirected to login page and after successful login, he/she should redirect to that activity.</p>

<p>In this situation, I used <code>startactivityfor result()</code>, but it shows the page loading again. So when I click back button (using <code>finish()</code>), it again shows the same page.</p>

<p>I want to load the page only once.</p>

<p>Does anybody knows how to accomplish this?</p>
