title: android which data connection
body: <p>Should my Android phone automatically select wi-fi if available, if not then go to the next data service etc.    If I use</p>
  
  <pre><code>connectivity.setNetworkPreference(ConnectivityManager.TYPE_WIFI);
  </code></pre>
  
  <p>will that ensure the same result or confine it to using wi-fi only.</p>