Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Contributor
guanaskformore
Posts: 8
Registered: ‎08-30-2010

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.

 

Thanks.

Please use plain text.
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
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

http://supportforums.blackberry.com/t5/Java-Development/What-Is-Network-API-alternative-for-legacy-O...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Found a bug? Report it using the Issue Tracker
Please use plain text.