问题
I need to pass the login details to another activity called AfterLogin via intents.bt when i run the following code it says that "Sorry ! The application login has stopped unexpectedly.Please try again." Can someone help me? Iam attaching my code here.Please help me
回答1:
Did you specify the 2nd activity you are using to the AndroidManifest.xml file ? By doing so, you'll let the system know that you are using it. see : http://developer.android.com/guide/topics/fundamentals/activities.html
回答2:
You need to add your activity in application section in AndroidManifest.xml:
<activity android:name=".YOUR_CLASS_NAME" android:label="LABEL_IF_NEEDED"/>
来源:https://stackoverflow.com/questions/9443211/android-passing-intents-between-activities