ANDROID: call many Activity from another Activity
<p>I try to call 2 Activities from the main Activity. however, the first Activity didn't work, just the second worked correctly. But when I just called one Activity, it run well. So i think the problem is that I can't call 2 Activities at the same time:</p>

<p>this is my code
the main Activity:</p>

<p>[CODE]</p>

<pre><code>package com.example.Test2;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ToggleButton;
import at.abraxas.amarino.Amarino;

import com.example.Test2.subclass;;

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

        final String DEVICE_ADDRESS = "00:06:66:43:9B:56";

        Amarino.connect(this, DEVICE_ADDRESS);

        Intent i1 = new Intent(this, subclass.class);
        Intent i2 = new Intent(this, subclass1.class);
        startActivity(i2);
        startActivity(i1);

    }
}
</code></pre>

<p>The subclass:</p>

<p>[CODE]</p>

<pre><code>package com.example.Test2;

public class subclass extends Activity implements OnCheckedChangeListener{

    // subclass code
}
</code></pre>

<p>[/CODE]</p>

<p>the subclass1</p>

<p>[CODE]</p>

<pre><code>package com.example.Test2;

public class subclass1 extends Activity implements OnSeekBarChangeListener{

    // subclass1 code
}
</code></pre>

<p>[/CODE]</p>

<p>I also declare 2 Activities: subclass and subclass1 in manifest file</p>

<p>thank you very much for helping </p>
