How to call HTTP URL using wifi in J2ME code for BlackBerry 5.0 and above?

后端 未结 2 1172
梦毁少年i
梦毁少年i 2020-12-21 18:59

I am calling a web service from BlackBerry using J2ME code. When I try to open a connection using HttpConnection, it is checking only the GPRS connection. Now

2条回答
  •  孤城傲影
    2020-12-21 19:37

    Check this way:

    HttpConnection conn = null;
    String URL = "http://www.myServer.com/myContent;deviceside=true;interface=wifi";
    conn = (HttpConnection)Connector.open(URL);
    

    source

提交回复
热议问题