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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With