Android studio getSlotFromBufferLocked: unknown buffer error

后端 未结 6 705
故里飘歌
故里飘歌 2020-11-27 16:11

I want to make a simple login and register app, so the user can create an account. (name, username, password) I use WAMP and a MYSQL database where I store the accounts.

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 16:53

    I think you are finishing the context before backgrounTask finish, and Context you pass no longer exist.
    You can try:

    • Use appContext : new BackgroundTask(Register.this.getApplicationContext());

    • Or, Wait for BackgroundTask finish : remove finish() after .execute(...) and add finish() onPostExecute

提交回复
热议问题