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
Regular Contributor
Posts: 90
Registered: ‎09-16-2010
My Device: Not Specified

Which is the method to get Wifi and Mobile Network provider name on the Custom Status Bar.

Hi,

I'm developing my application for Blackberry OS 5.0,

I need to add a custom status bar, where i need to display the Battery status, signal , time and the Network type (Wifi and Mobile Network provider name).

 

Which is the method, that will give me this information.

Please help

Developer
Posts: 16,998
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Which is the method to get Wifi and Mobile Network provider name on the Custom Status Bar.

battery:

http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/system/DeviceInfo.html#getBatt...

network:

http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/system/RadioInfo.html

wifi:

http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/system/WLANInfo.html

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Regular Contributor
Posts: 90
Registered: ‎09-16-2010
My Device: Not Specified

Re: Which is the method to get Wifi and Mobile Network provider name on the Custom Status Bar.

Hey Simon,

Thanks for the details.

 

I tried with this on the simulator

WLANAPInfo obj = WLANInfo.getAPInfo();

System.out.println("Network Type" + WLANInfo.getAPInfo().getProfileName());

However i get a null value for obj

May be it will work on the actual device.

Currently on the  simulator i see  something like "1xev" , how do i get this value 

Regular Contributor
Posts: 90
Registered: ‎09-16-2010
My Device: Not Specified

Re: Which is the method to get Wifi and Mobile Network provider name on the Custom Status Bar.

Please help.....Smiley Sad