EditText.getText().toString() crashes

前端 未结 2 1290
不思量自难忘°
不思量自难忘° 2021-01-24 03:19

In my android application , I have 3 dialogue boxes in which the user puts info into 3 editTexts and it will display the one of the data onto another class/page after it randoml

2条回答
  •  抹茶落季
    2021-01-24 03:39

    I think your app chash because you have an ANR: "Application Not Responding" because you are running a long procces inside the UIThread. (onCreate() method is form the UIThread)

    Use rather as an Asyntack for your sleeping thread or one handler (with messages).

    If you need more I can edit your code tomorrow.

提交回复
热议问题