Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

New Contributor
Posts: 8
Registered: ‎08-30-2010
My Device: Not Specified

how to get APN

I write a socket connection.And I promise users they can select the availabe apn,such as wifi,2g-Gsm,cdma and 3g sigal.


Is there an API can solve my question.



BlackBerry Development Advisor
Posts: 15,767
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: how to get APN

There is no way to programmatically retrieve the APN.  If the user has configured the APN under Options, Advanced Options, TCP, then direct TCP connections will use this APN by default.


If you are looking to choose an appropriate transport route based on what type of connection is available, have a look here:


What Is - Network API alternative for legacy OS


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker