BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-17-2008, 04:11 AM   #1
ambar
New Member
 
Join Date: Jul 2008
Model: 7100T
PIN: N/A
Carrier: sad
Posts: 14
Post How to get a list of APNs?

Please Login to Remove!

Hi all

How can I find a list of APNs(Access Point Networks) programmatically?
Any help would be greatly appreciable.

Thnkx.
Offline  
Old 09-17-2008, 06:07 AM   #2
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Cool

I don't think you can find it programatically.

If you have a service activated and you have the corresponding service book entry, then you can find the APN for that particular service.
Offline  
Old 09-17-2008, 06:25 AM   #3
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

here is a list of apns:
Carrier internet Settings (Apn Gateway, etc) - Pinstack.com - where Blackberry Professionals Connect!
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 09-23-2008, 12:05 AM   #4
ambar
New Member
 
Join Date: Jul 2008
Model: 7100T
PIN: N/A
Carrier: sad
Posts: 14
Arrow

thnkx for ur responses.I was doing a lot of research into this and found many things.
@arunk
I think one can get the list programatically.Heres How:
<code>
ServiceBook serviceBook = ServiceBook.getSB();
ServiceRecord[] records = serviceBook.findRecordsByCid( "WAP" );
for( int i = 0; i < records.length; i++ )
{
if( records[i].getName().equalsIgnoreCase( "WAPTransport" ) )
{

}
}
</code>
@simon.hain @arunk
Suppose I obtained a desired APN from servicebook as described above.Can I set this apn into the system some how and force any further connections to use this apn?Its like overidding the current apn for connections.???

One crude way is that one can use a particular apn for httpconnection by providing the apn info in the url provided to Connector.open()
like this
<code>
Connector.open("socket://testserver:600;deviceside=true;apn=<apn name>;tunnelauthusername=<apn username>;tunnelauthpassword=<apn password>");
</code>
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$40.90



OEM Battery for MacBook Pro 17

OEM Battery for MacBook Pro 17" A1309 A1297 Early 2009 Mid 2009 2010 MC226

$40.90



A1618 NEW OEM Battery for MacBook Pro 15

A1618 NEW OEM Battery for MacBook Pro 15" Retina A1398 Mid 2015 020-00079

$43.90



NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch picture

NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch

$31.90



NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015 picture

NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015

$43.90



Genuine OEM A1417 Battery For Apple Macbook Pro 15

Genuine OEM A1417 Battery For Apple Macbook Pro 15" Retina A1398 2012 2013 NEW

$40.90







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.