Android ListView, start new activity

后端 未结 2 1275
暗喜
暗喜 2021-01-29 04:59

Hey can someone tell me how I can start an activity by pressing an item in a listview?

Here is a hunch I have:

EDIT- I have fixed it i think bec

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-29 05:40

    Make sure you are adding the activity to the Android manifest In your manifest file you should add the activity like this:

    
    

    make sure to do this for each Intent and activity you plan to use.

提交回复
热议问题