-1

I want to test an android app. The framework I chose was Robotium and I was able to write test cases that involved using single activity with(out) fragments.

My problem is now I have my activity under test as activityA. From activityA, I want to disable some fields (which i was able to do) and then start activityB. How can this be done?

marius bardan
  • 4,962
  • 4
  • 29
  • 32
Rusheel Jain
  • 843
  • 6
  • 20

1 Answers1

1

to start another activity use:

Intent i = new Intent (getApplicationContext(), ActivityB.class);
startActivity(i); //Start Activity B
finish(); //Close Activity A
Strider
  • 4,452
  • 3
  • 24
  • 35