-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
PortScan() blocked UI thread and caused Progress Dialog is stopped and hang #58
Comments
Similar issue: |
Any updates on this? Thanks. |
@jerrychong25 @semenovalexander Hi Both, I've used the following code on android 6.0 and 9.0 and do not get UI blocking. I'll run some tests on < 6.0 and see what I get. Do you still get the blocking if you set the thread count to a low number? might be worth testing with 1.
|
No issue on low number. But in my application use case, I need to set setPortsAll() function so is there any other workaround for this? |
Related to this issue... In my case, my I was able to fix this by hooking into the
This feels a bit hacky, but works for my needs. I would like this library to handle the UI blocking issues more elegantly, without having to manually deal with threading concerns. |
No longer using AndroidNetworkTools nowadays. Will close this issue. Thanks all! |
Hi all,
I have implemented PortScan() function successfully.
However, it will block my Progress Dialog when running PortScan() function, whereby my Progress Dialog is called before PortScan() function.
The Progress Dialog is stopped and hang half way until the PortScan() is executed completely.
Is there any way to prevent blocking of my Progress Dialog when running PortScan() function?
Thanks.
My Source Code:
The text was updated successfully, but these errors were encountered: