Note that there are some explanatory texts on larger screens.

plurals
  1. POBlackBerry - Connection problem using WAP2
    text
    copied!<p>I am trying to establish connection to following url :</p> <p>" <a href="http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=0KOmkJ7V34Hvfo6oPV4YJaKmTz69b_UMMhOyBex5v24Gnyr3t4lrN26HBjwbfT.khg--&amp;query=pepsi&amp;latitude=37.79581&amp;longitude=-122.38008&amp;results=5" rel="nofollow noreferrer">http://local.yahooapis.com/LocalSearchService/V3/localSearch?appid=0KOmkJ7V34Hvfo6oPV4YJaKmTz69b_UMMhOyBex5v24Gnyr3t4lrN26HBjwbfT.khg--&amp;query=pepsi&amp;latitude=37.79581&amp;longitude=-122.38008&amp;results=5</a>"</p> <p>The problem is that when i am trying to make an connection to above url using WAP2 i am getting connection as null , on the other hand i am able to establish connection and getting correct response when i am making connection on WIFI.</p> <p>appending :</p> <p>";ConnectionUID=WAP2Trans" to above url doesn't work.(getting connection as null)</p> <p>while</p> <p>appending</p> <p>";interface=wifi" to above url works.</p> <p>My logic for getting ConnectionUID is :</p> <pre><code>ServiceBook sb = ServiceBook.getSB(); net.rim.device.api.servicebook.ServiceRecord[] records = sb.findRecordsByCid("WPTCP"); String uid = null; /*System.out.println("*****************Records are :" + records); System.out.println("*****************Records length :" + ecords.length);*/ for(int i=0; i &lt; records.length; i++) { if (records[i].isValid() &amp;&amp; !records[i].isDisabled()) { if (records[i].getUid() != null &amp;&amp; records[i].getUid().length() != 0) { if ((records[i].getCid().toLowerCase().indexOf("wptcp") != -1) &amp;&amp; records[i].getUid().toLowerCase().indexOf("wap2") !=- 1 &amp;&amp; (records[i].getUid().toLowerCase().indexOf("wifi") == -1) &amp;&amp; (records[i].getUid().toLowerCase().indexOf("mms") == -1)) { uid = records[i].getUid(); break; } } } } if (uid != null) { url = url +";ConnectionUID=" + uid; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload