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


MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2) picture

MSA 10042621 Altair 5X Sampling Probe Straight Air-Line 1' Color Black (E2)

$295.00



Altair WBS-202 Dual channel wireless intercom base station picture

Altair WBS-202 Dual channel wireless intercom base station

$1350.00



🔅MSA altair 4X multi gas Meter Monitor detector, (O2,H2S,CO,LEL) & Charger picture

🔅MSA altair 4X multi gas Meter Monitor detector, (O2,H2S,CO,LEL) & Charger

$399.99



MSA Safety 10087913 Charger for Altair 4X and 5X Multi-Gas Detector picture

MSA Safety 10087913 Charger for Altair 4X and 5X Multi-Gas Detector

$56.00



MSA altair 4X multi gas meter Monitor detector, O2,H2S,CO,LEL Charger calibrated picture

MSA altair 4X multi gas meter Monitor detector, O2,H2S,CO,LEL Charger calibrated

$450.00



MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector picture

MSA 10106725 Sensor with Alarms 10/1700 ppm with Altair 4X/5X Multi-Gas Detector

$199.00







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