Yes, tried to find calls in the NotePad, but none existed that I could find that did the call simply. They all looked like ones that did calls implicitly and not directly. Hence the reason I'm asking for "1" and not 43. I'm working on an example from a book I bought, but it's not working, so I've been looking for the correct way (obviously the book is either incorrect or incomplete). The book certainly doesn't have a full example. So let me restate my question a bit clearer:
1 full example of one direct invoke of an activity. Nothing extra. On Mar 7, 6:11 pm, Mark Murphy <[email protected]> wrote: > Mitch wrote: > > 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] > > ===== > > Use adb logcat, DDMS, or the DDMS perspective in Eclipse to look at the > Java stack trace associated with this dialog. That will tell you what is > going wrong. Most likely, there is a problem in your second Activity. > > > Here's one of the things I tried (among dozens) which causes this: > > > Intent myIntent = new Intent(this, NextActivity.class); > > startActivity(myIntent); > > That is perfectly fine, assuming that NextActivity is registered in your > manifest. > > > Does anyone have a link to simple example that starts up a new > > activity that is complete and works? > > There are 43 total calls to startActivity() from the sample code that > shipped with your SDK. Visit $ANDROID_HOME/platforms/$SDK/samples, where > $ANDROID_HOME is wherever you installed your SDK and $SDK is some SDK > version (e.g., android-2.1). > > Also, the Notepad tutorial has multiple activities: > > http://developer.android.com/resources/tutorials/notepad/index.html > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Android Programming Tutorials_ Version 2.0 Available! -- 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

