I'm trying start a new Activity from my current one.  Every place I
look for example code is different, but the result is the same.  The
code brings up the following dialog:

=====
Sorry!

The application MyApp (process com.example.mypackage) has stopped
unexpectedly.  Please try again.

[Force close]
=====

Here's one of the things I tried (among dozens) which causes this:

Intent myIntent = new Intent(this, NextActivity.class);
startActivity(myIntent);

Does anyone have a link to simple example that starts up a new
activity that is complete and works?

Thanks

Mitch

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to