Adding a new network bearer to Android
Solution 1:
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.