Was trying to call another application using an *explicit* intent, but
am finding it does not seem possible.
I do not wish to use implicit intents.
To test it out, try calling the YouTube main activity.

        Intent i = new Intent();
        ComponentName  cn = new
ComponentName("com.google.android.youtube","com.google.android.youtube.HomeActivity.class");
        i.setComponent(cn);
        startActivity(i);


I get this error:

08-29 00:54:26.598: ERROR/AndroidRuntime(7332): Caused by:
android.content.ActivityNotFoundException: Unable to find explicit
activity class {com.google.android.youtube/
com.google.android.youtube.HomeActivity.class}; have you declared this
activity in your AndroidManifest.xml?

Does anyone know whether this is possible? (using explicit intents to
call another application)
thanks,
Anil


-- 
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

Reply via email to