Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
How to get all Access Points in Java ME
How to get a List of all Access Points in J2me ?
Use IAPInfo API 1.0, available on devices with Java Runtime 1.4 to access Internet Access point information from the native database.
List all available APNs
public getAPNList() throws IAPInfoException
//Obtain IAPInfo object by factory
IAPInfo iapinfo = IAPInfo.getIAPInfo();
//Get list of available Destination Networks
DestinationNetwork dnetworks = iapinfo.getDestinationNetworks();
//Get list of access points from each destination network
DestinationNetwork dn = dnetworks[i];
// if Destination Network is not null, get list of APN in it.
if(dn ! = null)
aps = dn.getAccessPoints();
// if APN is not null, get its name
if(ap != null)System.out.println(ap.getName());
Check your target device spec's (http://www.developer.nokia.com/Devices/Device_specifications/?filter1=all) for support of IAPInfo API on it before using it.
--Submitted by Meetu Ekta at 21:50(IST), 30 August 2010.