This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes [Resolved] Application crashes on starting second Activity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "[Resolved] Application crashes on starting second Activity" Watch "[Resolved] Application crashes on starting second Activity" New topic
Author

[Resolved] Application crashes on starting second Activity

Rahul Rohilla
Greenhorn

Joined: Jun 02, 2010
Posts: 2
When I start a separate Activity my application is crashing. The way I am doing is from the main activity onClick handle I call.



the showNextDialog is defined in main.xml as

<Button
android:id="@+id/NextWindow"
android:layout_width="137px"
android:layout_height="40px"
android:text="Show"
androidnClick="showNextDialog">
</Button>

The second activity that is created is




The services.xml is defined as



Anybody having any idea why the application is crashing...
Sean Overby
Greenhorn

Joined: Jan 19, 2010
Posts: 4
A stack trace / logcat dump would go a long way toward being able to help you.


Sean Overby
SCJP 1.4, SCWCD 1.5
Rahul Rohilla
Greenhorn

Joined: Jun 02, 2010
Posts: 2
I did not add the Activity to manifest.xml, worked fine after adding it. Thanks Rahul
 
 
subject: [Resolved] Application crashes on starting second Activity
 
Similar Threads
Keyboard events for EditText not reaching my event handler.
reading XML layout contains a SurfaceView
how can we view the two lists on a single display???
nullpointer when i try to initiate onclicklistener
Why error in this code