Essentials
Essentials copied to clipboard
Reading network state in the modern way
Description of Change
I faced the issue with the x86_64 emulator (and Chromebook as well) when I was compiling it with the LLVM+AOT. The app started and hanged. After hours of investigation, with lots of logs added, I found the issue with the Connectivity. As I see, Connectivity used a lot of deprecated API. I updated its code according to Android recommendations:
https://developer.android.com/training/basics/network-ops/reading-network-state
Bugs Fixed
- Related to issue #
#2035
PR Checklist
- [ ] Has tests (if omitted, state reason in description)
- [ ] Has samples (if omitted, state reason in description)
- [ ] Rebased on top of
mainat time of PR - [ ] Changes adhere to coding standard
- [ ] Updated documentation (see walkthrough)
After much consideration I have decided not to still merge this PR. While I think it definitely makes sense to get rid of the obsolete APIs, at this point in the Essentials lifespan this is a risky change that can cause breaking changes to people.
Thank you so much for your time and effort with this change!