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.

inside custom component

Java Development

Reply
BlackBerry Development Advisor
MSohm
Posts: 14,677
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Configuration Information ...

Quote from the previous forum:


VipulPathak

Posts: 47
From: Columbia, MD
Registered: Apr, 2008

Configuration Information ...
Posted: Jun 30, 2008 8:43 AM
 
Hello Everyone,

Can someone throws light on- How to obtain vaious type of configuration information programmatically ?

For instance, if I want to obtain BlueTooth and GPS settings or WAP/Data connection settings or Calender/mail synchronization settings, then where should I find it ?

Service Books ?

Any Idea would be helpful.

Regards,

*(Vipul)() ;

 


VipulPathak

Posts: 47
From: Columbia, MD
Registered: Apr, 2008

Re: Configuration Information ...
Posted: Jul 9, 2008 10:46 AM
 
Anyone ?

 

msohm

Posts: 2,247
Registered: Jul, 2005

Re: Configuration Information ...
Posted: Jul 9, 2008 7:17 PM
 
Can you provide some specific examples of the settings you are trying to read?

Mark Sohm
BlackBerry Developer Journal
www.blackberrydeveloperjournal.com

 

VipulPathak

Posts: 47
From: Columbia, MD
Registered: Apr, 2008

Re: Configuration Information ...
Posted: Jul 15, 2008 5:35 AM
 
Sure.

For example, if I want to determine-
1. [WIFI] Whats the IP of this handheld
2. [WIFI] Whats the IP of its default Gateway
3. [SYNC] PIM Items synchronization settings, (e.g. when, how many, count, Sync triggers at etc.)
4. [WIFI] What is defined behavior to connect when Multiple Wi-Fi networks are found (AUTO CONNECT/MANUAL)
5. [MAIL] What the Mail server name/IP
6. [MAIL] Whats the user Id in use
7. [MAIL] What the type of server (EXCHANGE/DOMINO)
8. [BLUE_TH] What Bluetooth setting (Off/Always On)
9. [BLUE_TH] Active Bluetooth Pairing etc.

Any other setting, for example useful settings like- Data Connection Settings, Mobile Network Settings, GPS Settings, Message Sync settings etc.

Please let me know, if I am expecting just too much with the device API .... :-)

There isn't an API available to obtain most of the information you are looking for.  You can get some information about the WiFi connection by using the WLANInfo class.  The mail server information is not stored on the BlackBerry, so that is not accessible.  The BluetoothSerialPort and BluetoothSerialPortInfo classes can be used to find information about paired devices.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
VipulPathak
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320

Re: Configuration Information ...

Thanks Mark for making the scene clear. I will live with WLANInfo and BluetoothSerialPortInfo classes, since for others there is No option.

 

*(Vipul)() ;
Please use plain text.