Java.lang.IllegalStateException: Already attached

前端 未结 4 1529
Happy的楠姐
Happy的楠姐 2021-01-07 19:50

I\'m trying to build an app, that pastes an input from a previous activity(works with no problem) and then shows me some things from a database(when ButtonGet is pressed). T

4条回答
  •  逝去的感伤
    2021-01-07 20:35

    In your onCreate, you're calling super.onCreate() twice, and also setContentView() twice. I'm pretty sure that's not what you want to do.

提交回复
热议问题