thanks! On Aug 29, 1:58 am, Kostya Vasilyev <[email protected]> wrote: > Don't need the trailing ".class", take it out (in component name). > > Trailing .class is Java syntax to get the class object of another object, > that's why you often see it for starring activities and services in the same > application. > > Class *names* however don't have ".class" at the end. > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 29.08.2010 9:01 пользователь "Anil" <[email protected]> написал: > > 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]<android-developers%[email protected]> > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en
-- 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

