android activity sequence management issue
<p>I have some problem with "how android manage its activity called from another activity"</p>

<p>I'm using the following code... whenever I execute the program on the device... it execute the "second "activity first before executing the "first" activity. </p>

<p>program display the "second" acitivy first. after pressing back button it display the "first" activity.</p>

<p>But I need to execute them in calling sequence as we call methods in java.</p>

<p>plz help me if anybody know it....... thanx in advance.</p>

<pre><code>package com.example.ggandroid;
import android.content.Intent;
import android.app.Activity;
import android.os.Bundle;

public class RelLayoutdemo extends Activity
{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
      //  setContentView(R.layout.main);
 Intent first = new Intent(this, VideoViewDemo.class);
//first.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK);
          this.startActivity(first);

       Intent second = new Intent(this, tableview.class);
      this.startActivity(second);

}
}
</code></pre>
