My J2ME application either connect to server by Socket or HTTP connection. I want the application can query MIDP when it starts up. If MIDP support Socket protocol in StreamConnection class the application uses Socket, otherwise it uses HTTP. Is there any API or method to do this query? Anyone has do the similar checking?