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

Posts: 174
Registered: ‎08-20-2008
My Device: Not Specified

Re: How to detect weither the MDS service is available

I would do something like this. This will start the connection if not already done so.


int httpstatus = httpConn.getResponseCode(); if (httpstatus != HttpConnection.HTTP_OK) { // Some error handling such as close connection and report http code error }


Where httpConn is your HttpConnection.