File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Starting a new activity from current Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Starting a new activity from current" Watch "Starting a new activity from current" New topic

Starting a new activity from current

vinal s.sen

Joined: Jul 20, 2012
Posts: 9
There is a form with 2 pages in it.When i click on next,it should go to next page,starting a new activity.but when i click on the button,android application stops working.please tell me what is the error in the code.

Mainscreen code

(Globalstate class is for saving the values so it could be retrieved from newly created activity)

android manifest file
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
android:versionName="1.0" >

<uses-sdk android:minSdkVersion="15" />

android:label="@string/app_name" >
android:label="@string/app_name" >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />



please help me...thanks in advance

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
What does "android application stops working" mean? If there's an exception, post the stack trace (you can find it on the logcat output).
vinal s.sen

Joined: Jul 20, 2012
Posts: 9
thanks Ulf!!!

I found solution.everytime i create a database,I give a new name then problem is solved.dunno i am running out of time for finishing my project,as quick fix,I am changing the database name.

I agree. Here's the link:
subject: Starting a new activity from current
It's not a secret anymore!