did you add the intents to AndroidManifest.xml?

On Tue, Apr 28, 2009 at 2:05 PM, a...@lg <l.prade...@gmail.com> wrote:

>
> @Override
>    public void onStart() {
>        super.onStart();
> _intent = new Intent(Intent.ACTION_MAIN);
> _intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
> _intent = _intent.setClass(getTargetContext(), ClassUnderTest.class);
> ActivityInfo ai = _intent.resolveActivityInfo(getTargetContext
> ().getPackageManager(), 0);
>        if (ai != null) {
>                   ClassUnderTest activity = (ClassUnderTest)
> startActivitySync(_intent);
>        }
> }
>
>
> This a part of my code in my Instrumentation class. Earlier, i got a
> run time Exception,Quote:
> java.lang.RuntimeException: Unable to resolve activity for: Intent
> { flags=0x10000000 comp={com.android.test.ui/
> com.android.test.ui.ClassUnderTest} }.
>
> Later on, i checked the activity info which is always null. How to set
> the ActivityInfo..? What is required to update in the code?
>
> >
>


-- 
Omer

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to