title: Create android AVD without 3G connection
body: <p>One of the functions in my app sends data over the internet.  Before attempting to send the data, I check whether a connection exists:</p>
  
  <pre><code>private boolean isConnected() {
      ConnectivityManager connectivityManager = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
      NetworkInfo.State val1 = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE).getState();
      NetworkInfo.State val2 = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI).getState();
      return NetworkInfo.State.CONNECTED.equals(val1) || NetworkInfo.State.CONNECTED.equals(val2);
  }
  </code></pre>
  
  <p>This worked perfectly fine on emulator and a couple of real devices I tested on.  Then I received an error report from the client, which on investigation turned out to be a <code>NullPointerException</code> on <code>getState</code> line for <code>TYPE_MOBILE</code>.</p>
  
  <p>Apparently, <code>connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE)</code> returned <code>null</code> on the device that didn't have 3G (a WiFi-only tablet).  Although I did test on a Nexus 7 emulator, I didn't get this error.</p>
  
  <p>Hence, what I'm interested in is creating an AVD that explicitly does not have 3G (i.e. an AVD for a WiFi-only device) so that I could investigate/test such scenarios.  I haven't found anything in the emulator options, but maybe I'm just looking in a wrong place. Is this even possible?</p>