- If app target android 24, don't register CONNECTIVITY_ACTION broadcast in manifest.
However, we can register broadcast by
Context.registerReceiver()
. However CONNECTIVITY_ACTION constant was deprecated in API level 28 => use another way for listen connection change https://developer.android.com/reference/android/net/ConnectivityManager.html#CONNECTIVITY_ACTION
-
Notifications
You must be signed in to change notification settings - Fork 1
PhanVanLinh/AndroidNetworkChangeReceiver
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published