Refreshing previous activity
<p>I know some people asked the question, but no answers helped me, and i'm new on android :)</p>

<p><a href="http://stackoverflow.com/questions/6850683/using-onresume-to-refresh-activity">This answer</a> could help me. But I cannot figure it out.</p>

<ol>
<li>I have two Activities : Activity1 and Activity2</li>
<li>I go to Activity2 by using the button01</li>
</ol>

<p>I want automatic refresh When I back to Activity1 using even physical back button.</p>

<p>Code of Activity1</p>

<pre><code>public class Activity1 extends Activity {

    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button next = (Button) findViewById(R.id.Button01);
        next.setOnClickListener(new View.OnClickListener() {
            public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), Activity2.class);
                startActivityForResult(myIntent, 0);
            }    
        });            
    }
}
</code></pre>

<p>Code of Activity2</p>

<pre><code>public class Activity2 extends Activity {

            /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main2);     
    }
}
</code></pre>

<p>Kind request for elaborate suggestions...
Thanks in Advance.</p>
