Android Activity starting on successfull db operation
<p>I have created one small Application with login page, and after login user can see HOME page with GridView.</p>

<p>On the Grid I have put two button for <code>Projects</code> and <code>Tasks</code>. When User click on any button new Activity for list is called. </p>

<p>On the List page I have created one Button to add new data. I have used AsyncTask in listing and Addition operation Activity.When user add any data ,after addition successfully listing activity is called, but when user presses back button of phone, user can see the data filled for addition and if I want to restrict the user when he press back.</p>

<p>How to restrict the user if user has clicked on button to enter new data? How can I restrict the user when user press the back button of the phone?</p>

<p>Right now I have used finish() after successful db operation.
And also when user click back button of phone list page need to refresh. for this I am calling new CYZ().execute() in the onResume().</p>

<p>But what is the proper way? What are the draw back of using onResume() and calling finish()?</p>
