Can´t finish Activity

后端 未结 1 505
难免孤独
难免孤独 2021-01-26 07:36

I have tried className.this.finish and finishActivity() to invoke the finishing of my activity and I have initialised the activity with the following methods - startActivityFor

1条回答
  •  一生所求
    2021-01-26 07:52

    I found the error. insted of:

    mDatabase.child("Devices").child(MacCerca).child("Users").addValueEventListener(new ValueEventListener() {
    

    change for:

    mDatabase.child("Devices").child(MacCerca).child("Users").addListenerForSingleValueEvent(new ValueEventListener() {
    

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