android listview intent

后端 未结 1 1705
一向
一向 2021-01-29 10:56

I am not able to create an intent after click in my Listview. After completing It gives an error

The application has stopped unexpectedly, please try aga

相关标签:
1条回答
  • 2021-01-29 11:27

    Make sure you declared lstchoi in your manifest.xml. Assuming it is an Activity, you would do something like:

    <application android:icon="@drawable/icon" android:label="@string/app_name">
    
            <activity android:name=".lstchoi"/>
    

    You can also remove this line:

     IntentDiscution.setClass(InterfaceAcceuil.this, lstchoi.class);
    

    It is redundant because you used the constructor to indicate the same information.

    0 讨论(0)
提交回复
热议问题