I have converted an existing android project (say App1) into an android library project using eclipse by setting 'Is Library' as true in its android properties. Then in my other project (say App2) I have added this library project using eclipse by adding App1 in its library references. In App2 I have tried to launch an activity of App1. I have mentioned this activity in the manifest file of App2.
Intent intent = new Intent(TestActivity.this, ForYouActivity.class);
TestActivity.this.startActivityForResult(intent, 1);
But when I run the application, I get an error
E/AndroidRuntime(2489): java.lang.NoClassDefFoundError: com.test.activities.ForYouActivity
Please help me out with this. Thanks in advance