02-23-2009 03:03 PM
i need to do such a thing: my application, before running must set an access point. maybe it can be like at the beginning access point's settings occurs and user can configure it? actually i have no idea how to start. Can anyone suggest me anything?
02-24-2009 03:25 AM
i've found on google that
ServiceBook _serviceBook = ServiceBook.getSB();
ServiceRecord records = _serviceBook.findRecordsByCid("name");
can get me list of APNS. But i have a problem-> do not know how to find Cid. i saw in examples on google that i can put there 'WIFI'(to get wifi), 'WAP', 'WPTCP', but none of them finds anything. i use orange internet and under my tcp options in blackberry in APN i'ge got 'internet'. but when i try:
ServiceRecord records = _serviceBook.findRecordsByCid("internet");
it also does not find anything...
Can anyone suggest me anything?
ps. my bb is 8300
02-25-2009 05:00 PM
You can specify the APN to use in the call to Connector.open. This overrides whatever the user has configured under Options, (Advanced Options), TCP.
How To - Specify APN information for a direct TCP connection
Article Number: DB-00532