simlar-android icon indicating copy to clipboard operation
simlar-android copied to clipboard

Network Type may not be being verified in project

Open amazuerar opened this issue 4 years ago • 0 comments

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:

  1. https://developer.android.com/training/basics/network-ops/managing
  2. https://developer.android.com/training/efficient-downloads/connectivity_patterns
  3. https://developer.android.com/reference/android/net/NetworkCapabilities
  4. Applications should use NetworkCapabilities#hasTransport or requestNetwork(android.net.NetworkRequest, android.net.ConnectivityManager.NetworkCallback) to request an appropriate network.

amazuerar avatar Aug 15 '21 17:08 amazuerar