android.support.v4.net
Class ConnectivityManagerCompat

java.lang.Object
  extended by android.support.v4.net.ConnectivityManagerCompat

public class ConnectivityManagerCompat
extends java.lang.Object

Helper for accessing features in ConnectivityManager introduced after API level 16 in a backwards compatible fashion.


Constructor Summary
ConnectivityManagerCompat()
           
 
Method Summary
 boolean isActiveNetworkMetered(ConnectivityManager cm)
          Returns if the currently active data network is metered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectivityManagerCompat

public ConnectivityManagerCompat()
Method Detail

isActiveNetworkMetered

public boolean isActiveNetworkMetered(ConnectivityManager cm)
Returns if the currently active data network is metered. A network is classified as metered when the user is sensitive to heavy data usage on that connection. You should check this before doing large data transfers, and warn the user or delay the operation until another network is available.