I just started working with Robotium and tried to test my phone and Android app in one test case.
This is the scenario:
1- step
Launch the phone application - dial the number (33323589) - wait (3 s) - end the call - return to the phone application. Home screen - select the contact list tab.
Go to the contact list - Scroll down - select a contact and dial the number.
The first step works, I can start the contact application, but I can not play in the contact list. My question is how to launch the contact application toolkit when the telephone hardware application was previously launched.
I try this:
Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setClassName(getTargetContext(), "com.android.contacts.contactsList");
Activity activity = startActivitySync(intent);
http://groups.google.com/group/robotium-developers/browse_thread/thread/c82a02b4973cbb4d/7a6795ddbcd7c527?show_docid=7a6795ddbcd7c527
,
, ?
Chindji