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


FARM FRESH BLACKBERRIES CLEARANCE BANNER Advertising Vinyl Flag Sign AAA picture

FARM FRESH BLACKBERRIES CLEARANCE BANNER Advertising Vinyl Flag Sign AAA

$168.54



Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh picture

Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh

$219.95



Nice Vintage Working RIM Blackberry 857, with Cradle, Collector's Item R857D-2-5 picture

Nice Vintage Working RIM Blackberry 857, with Cradle, Collector's Item R857D-2-5

$124.95



(2 Pack) Gourmet BLACKBERRY SYRUP 32oz. Coffee Drink & Italian Soda Flavor picture

(2 Pack) Gourmet BLACKBERRY SYRUP 32oz. Coffee Drink & Italian Soda Flavor

$24.50



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$118.19



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$118.19







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