Android -passing intents between activities

自古美人都是妖i 提交于 2019-12-14 03:36:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!