Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 10 - Something came up. The application has cancelled the request to choose a device. #113

Open
mhdshah opened this issue Sep 2, 2021 · 1 comment

Comments

@mhdshah
Copy link

mhdshah commented Sep 2, 2021

After 15 seconds of the timeout, the error message is shown "Something came up. The application has cancelled the request to choose a device" in the app. How to resolve this issue?

private fun connectHidden(context: Context) {
WifiUtils.withContext(context)
.connectWith(textview_ssid.text.toString(), textview_password.text.toString(),TypeEnum.EAP)
.setTimeout(15000)
.onConnectionResult(object : ConnectionSuccessListener {
override fun success() {
Toast.makeText(context, "SUCCESS!", Toast.LENGTH_SHORT).show()
}

                override fun failed(errorCode: ConnectionErrorCode) {
                    Toast.makeText(context, "EPIC FAIL!$errorCode", Toast.LENGTH_SHORT).show()
                }
            })
            .start()
}
@fernando-s97
Copy link

AFAIK that's not an issue. That's how Android works after the timeout time is reached

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants