Let me share more details: MainListingA is a class that extends ListActivity. In it I have a simple onclick event that triggers the initialization of the new intent. Intent i = new Intent(MainListingA.this, DrawTheatreMap.class);
When I use any other activity (except for DrawTheatreMap.class) as the parameter in the above intent initialization, it works. Only for activity that extends MapActivity, this intent initialization gives error, which was shared in earlier thread. When I said this whole thing works on a standalone basis, I was refering to the DrawTheatreMap Activity (which extends MapActivity). When I use the same DrawTheatreMap Activity class in a new project as a single activity, it works. But the moment, I try to call it from another activity, it gives the above error...even when both are in the same project/package. Thanks for taking time to review my problem. Rgds, PP On Jul 26, 10:44 pm, Pravin Parulekar <[email protected]> wrote: > When I try the above, > I get a class not found exception. > > I have included the required entry in manifest file. > > The code in current activity is as follows: > > Intent i = new Intent(MainListingA.this, DrawTheatreMap.class); > > try{ > startActivity(i); > > } > ........ > > The error I get is as follows: > > 07-26 23:03:20.259: WARN/dalvikvm(307): threadid=1: thread exiting > with uncaught exception (group=0x4001d800) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): FATAL EXCEPTION: main > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): > java.lang.NoClassDefFoundError: com.mobilo.movie.DrawTheatreMap > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > com.mobilo.movie.MainListingA$1.onItemClick(MainListingA.java:101) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > android.widget.AdapterView.performItemClick(AdapterView.java:284) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > android.widget.ListView.performItemClick(ListView.java:3382) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > android.widget.AbsListView$PerformClick.run(AbsListView.java:1696) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > android.os.Handler.handleCallback(Handler.java:587) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > android.os.Handler.dispatchMessage(Handler.java:92) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > android.os.Looper.loop(Looper.java:123) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > android.app.ActivityThread.main(ActivityThread.java:4627) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > java.lang.reflect.Method.invokeNative(Native Method) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > java.lang.reflect.Method.invoke(Method.java:521) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > com.android.internal.os.ZygoteInit > $MethodAndArgsCaller.run(ZygoteInit.java:868) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) > 07-26 23:03:20.397: ERROR/AndroidRuntime(307): at > dalvik.system.NativeStart.main(Native Method) > > Any help is highly appreciated. > > On a standalone basis, the same map activity works fine. > > Rgds, PP -- 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

