Android Wait for user input at AlertDialog to proceed

前端 未结 3 1108
忘掉有多难
忘掉有多难 2021-01-28 06:06

I\'ve see this subject been discussed here but can\'t seem to understand how to proceed.

In my onCreate I have code that checks if it is the first run of th

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-28 06:28

    What I understand is that the changeLog will run every first run of the app. So you can override onDismiss() of your changeLog AlertDialog. Then just put your code for firstRun check

    @Override
    public void onDismiss(DialogInterface dialog)
    {
        // firstRun Check
        // call function to run AlertDialog code for first check if firstRun == true else close dialog
    }
    

提交回复
热议问题