View Single Post
Old 01-31-2010, 09:10 PM   #3 (permalink)
pinotiamo
New Member
 
Join Date: Aug 2009
Model: 8800
PIN: N/A
Carrier: BB
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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();
Offline   Reply With Quote