Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Starting a new activity from current

 
vinal s.sen
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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="http://schemas.android.com/apk/res/android"
package="nithya.androidprojects"
android:versionCode="1"
android:versionName="1.0" >

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

<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".Mainscreen3Activity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>


<activity
android:name="secondscreen"
android:label="secondscreen">
</activity>
</application>

</manifest>


please help me...thanks in advance

vinal
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Ulf!!!

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



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic