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. Thanks for all your past and future contributions.

How to get the last-used Access Point in Java ME

From Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Java Runtime 1.4
Keywords: IAPInfo, APN, DN, Access point, Destination Network
Created: ektasrv (30 Aug 2010)
Last edited: hamishwillee (25 Jul 2013)



How to get the last used Access Point in Java ME?


Use IAPInfo API 1.0, available on devices with Java Runtime 1.4 to access Internet Access point information from the native database.

Sample Code



Get Last used APN

public AccessPoint getLastUsedAPN() throws IAPInfoException
//Obtain IAPInfo object by factory
IAPInfo iapinfo = IAPInfo.getIAPInfo();
//Get the last used access points by the MIDlet suite.
AccessPoint ap = iapinfo.getLastUsedAccessPoint();
return ap;


Check your target device spec's ( for support of IAPInfo API on it before using it.

This page was last modified on 25 July 2013, at 07:51.
28 page views in the last 30 days.