What is NETWORK_STATE_UNMETERED?

1.6k views Asked by At

I need to use GcmNetworkManager to schedule a PeriodicTask. I need to tell the system to transfer only when there is WIFI. But the choices are NETWORK_STATE_CONNECTED, NETWORK_STATE_UNMETERED, and NETWORK_STATE_ANY. Does anyone know if NETWORK_STATE_UNMETERED is just a fancy way of saying WIFI? (please provide supporting reference. Thanks.)

1

There are 1 answers

0
gustavogbc On

Yes. According to the two books below, NETWORK_STATE_UNMETERED means that your app requires WIFI Network.

It is called "unmetered" in the sense that "time of use won't be measured so you won't be charged for that".

  1. Android High Performance Programming By Enrique Lopez Manas, Diego Grancini
  2. Android: Programming for Developers By John Horton, Helder Vasconcelos, Raul Portales