Hello all,
I am trying to test my activities. I have been using
ActivityInstrumentationTestCase however, I can not see any way to
start the activity with an intent. From what I understand the activity
is started in the setup() via super.launchActivity(pkg, activityCls,
extras). Is there any way to set the intent before starting the
activity?
The reason I am asking is because I have the following in my onCreate
in the activity:
if (intent.getData() == null) {
Log.e(TAG, "Can not display single route without a
URI");
finish();
} else {
Cursor cursor = managedQuery(intent.getData(),
PROJECTION, null,
null, null);
}
As you can see, without the intent'data , I can not start the
activity.
Any comments are much appreciated.
Thanks,
/.C
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---