My ConnectionString is below:
Code:
public String getConnectionString()
{
String st = "";
if ( ( RadioInfo.getActiveWAFs() & RadioInfo.WAF_WLAN ) != 0 )
{
if(CoverageInfo.isCoverageSufficient(CoverageInfo.COVERAGE_CARRIER,RadioInfo.WAF_WLAN, false))
st = ";deviceside=true;interface=wifi";
}
else
{
//A carrier is providing us with the data service
if(RadioInfo.getCurrentNetworkName() == null) // not wifi
return st;
if ((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_CARRIER) == CoverageInfo.COVERAGE_CARRIER)
{
// blackberry internet service
ServiceRecord rec = getBIBSRecord();
if (rec == null)//couldn't find the right record
//st = ";deviceside=true";// let the phone try to do the work
st = "";// let the phone try to do the work
else//found the record, get the id
st = ";deviceside=false;connectionUID=" + rec.getUid()
+ ";ConnectionType=mds-public";
}
else if ((CoverageInfo.getCoverageStatus() & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS)
st = ";deviceside=false";// use the clients blackberry enterprise server
else
st = "";
}
return st;
}
url = "h t tp//abc.com/star.png" + getConnectionString();