android:3G and GPRS
<p>How can i use 3G network to run application that makes use of internet.
i have make use of wi-fi, but not getting how to set preferance for 3G.</p>

<p>Any help.</p>

<p>here is the code i have used for wifi.</p>

<p>final ConnectivityManager connMgr = (ConnectivityManager)
    getSystemService(Context.CONNECTIVITY_SERVICE);</p>

<p>final android.net.NetworkInfo wifi =                     connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);</p>

<p>Any help that how can i come to know whether 3G is available or not?
if(wifi.isAvailable())
{
    Toast.makeText(Main.this,"Connected to wifi",Toast.LENGTH_SHORT).show();
    Intent intent =new Intent (Main.this, Myapplicationclass.class);
    startActivity(intent);
}</p>

<pre><code>                 }
</code></pre>
