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
Developer
Posts: 51
Registered: ‎09-18-2008
My Device: Not Specified

Need to show status or alert message network status(http connection)

Hi

 

I need to show the Notification message if the network goes off and on in b/w uploading and downloading data.

 

can you help me using the code..Please.

 

Thanks in advance.

 

BlackBerry Development Advisor
Posts: 15,117
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Need to show status or alert message network status(http connection)

You can use a RadioStatusListener and/or CoverageListener to detect coverage state changes.  This link provides an example of displaying a screen from a background application.

 

How To - Alert a user from a Background application
Article Number: DB-00407

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

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
Developer
Posts: 51
Registered: ‎09-18-2008
My Device: Not Specified

Re: Need to show status or alert message network status(http connection)

Thanks for your response..

 

My question was how to check the network status. if network goes donw and up in b/w transerfering data.

 

It should notify user regarding how many file is uploaded or downloaded.

 

Thanks .

 

 

BlackBerry Development Advisor
Posts: 15,117
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Need to show status or alert message network status(http connection)

The RadioInfo class can be used to poll for the current network status.  You can use a RadioStatusListener and/or CoverageListener to listen for coverage state changes. 
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