simlar-android
simlar-android copied to clipboard
Network Type may not be being verified in project
Dear Developer!
My name is Alejandro Mazuera-Rozo, I am a PhD Student at Universidad de los Andes, and at Università della Svizzera italiana. I am part of a research on the usage of network libraries within android apps. As you might know, a device can have various types of network connections. For the full list of possible network types, see https://developer.android.com/reference/android/net/ConnectivityManager. Therefore it is recommended for the app to identify the type of network available before performing a network operation.
In order to address this issue we recommend the following resources:
- https://developer.android.com/training/basics/network-ops/managing
- https://developer.android.com/training/efficient-downloads/connectivity_patterns
- https://developer.android.com/reference/android/net/NetworkCapabilities
- Applications should use
NetworkCapabilities#hasTransportorrequestNetwork(android.net.NetworkRequest, android.net.ConnectivityManager.NetworkCallback)to request an appropriate network.