How to finish an Activity (Before calling an new one)
<p>I know about <code>finish()</code> method but is there a way to finish an activity completely before calling a new activity?</p>

<p>if you do </p>

<pre><code>startActivity(intent);
finish();
</code></pre>

<p>You are starting a new activity before closing the previous activity completely.</p>

<p>Is there a way to close an activity completely before calling a new one?</p>

<p>Thanks a lot in advance.</p>

<p>EDIT: I need this because the old activity is a drawing file. The new activity is a listView activity. When a user close drawing file and start listView, that drawing file doesn't show up in listView. When I update listView using onClickListener of a button afterwards, listView gets updated - I think this is because the previous activity which was using the file is closed completely.</p>
