Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a new network bearer to Android

I'd like to add new bearer(s) to Android (rooted/custom build), to be a peer with Wifi and GPRS.

I have done some Android development and I am aware that (in Android 2.2) there are constants for WIFI and GPRS. Does this mean that I will need to be adding constants in all over the place, as well as providing the network stack?

The first bearer I want to add is USBNet (for Androids with USB host).

Another will be a 3G USB dongle as a second GPRS bearer.

I have started by downloading the source.

like image 917
fadedbee Avatar asked May 15 '12 07:05

fadedbee


People also ask

What should be the bearer in APN settings?

The Bearer setting allows you to restrict the current APN configuration to only be available when specific communication protocols are in use. ... It allows you, for example, to use one APN configuration to be selected when LTE is in use, and another APN configuration to be selected if eHRPD or EvDO is in use.

Can I make my own APN?

Fortunately, on Android devices, you can create new APN — as long as the phone is unlocked (see my post “New freedom for unlocked US mobile devices” for more information). With an unlocked device, you can edit an APN or even add a new APN. If your device is still locked, you won't be able to work with APNs.


1 Answers

WIFI add network will be you can take hints from this code..

how do we get the access point name from an Android Phone.

WifiManager mWiFiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); WifiInfo w = mWiFiManager.getConnectionInfo(); Toast.makeText(this, "APN Name = "+w.getSSID(), Toast.LENGTH_SHORT).show(); 

The above code snippet is for current active APN name.

like image 152
Varun kumar Avatar answered Sep 18 '22 22:09

Varun kumar