tags:

views:

53

answers:

0

I programmed 2 activities in 2 different applications. Now I try start one activity from the other through: Intent i = new Intent(); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); i.setComponent(new ComponentName("com.android.notepad", "com.android.notepad.NoteEditor")); this.startActivity(i);

But whatever I try to put in as pkg/classname it always fail with: "unable to find explicit activity class com.android.notepad/com.android.notepad.NoteEditor"

I show here an example with notepad, but I tried with some own written applications like "Hello world" Beause he put a / between package and class I guess it need some kind of filename instead? Does anybody got it to work to start a activity through the component name?