How can I get the results from an AlertDialog?

后端 未结 6 1475
别跟我提以往
别跟我提以往 2020-12-16 10:57

I am using an AlertDialog.Builder to display a dialog to prompt the user to enter a password, I then want to save that password in a preference, however I can\'t figure out

6条回答
  •  独厮守ぢ
    2020-12-16 11:29

    Variable result , make it a member variable , instead of local variable. By making "result" as member variable it is accessible in the entire activity.(parent class which extends activity)

提交回复
热议问题