UMAR UMAR - 1 year ago 105
Android Question

how to run Specific activity in android emulator?

i have created 4 activities in eclipse now i want to run activity 1, 2,3 ,4 repectively one by one in emulator for testing.

can any one guide me how can i run those all???

when i press run button it only runs first activity.

any help would be appriciated.

Answer Source
public void onClick(View v) {

    Intent i;

    i = new Intent(this, YourActivity1.class);

    i = new Intent(this, YourActivity2.class);

    i = new Intent(this, YourActivity3.class);

    i = new Intent(this, YourActivity4.class);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download