This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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

Win a copy of Building Microservices this week in the Design forum!
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: 42958
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.

Have you checked out Aspose?
subject: Starting a new activity from current
It's not a secret anymore!