Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry Professionals > App Developers

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 05-23-2011, 09:41 AM
CrackBerry Newbie
 
Join Date: Apr 2011
Posts: 4
Likes Received: 0
Thanked 0 Times in 0 Posts
Default SIM card with no internet connection from a blackberry app

I've got a problem with establishing an internet connection in a Blackberry Java application. Only under some specific conditions:
- a specific SIM card
- a specific set of handsets

I cannot establish a WAP2 connection with the GSM provider. Although I used a connection suffix like

http:/example.com/;ConnectionUID=WAP2 trans

I get an IOException with an info:
Code:
IOException (ID 3) occured: Failed to transmit
The suffix is taken from the contact book like that:
Code:
			String uid = null;
			ServiceBook sb = ServiceBook.getSB ();
			ServiceRecord[] records = sb.findRecordsByCid ("WPTCP");
			for (int i = 0; i < records.length; i++)
			{
				if (records[i].isValid () && !records[i].isDisabled ())
				{
					if (records[i].getUid () != null
							&& records[i].getUid ().length () != 0)
					{
						if ((records[i].getCid ().toLowerCase ().indexOf (
								"wptcp") != -1)
								&& (records[i].getUid ().toLowerCase ()
										.indexOf ("wifi") == -1)
								&& (records[i].getUid ().toLowerCase ()
										.indexOf ("mms") == -1))
						{
							// if wptcp and neither wifi nor mms
							// because we have checked wifi already and fir sure
							// we do not want mms
							uid = records[i].getUid ();
							break;
						}
					}
				}
			}

			if (uid != null)
			{
				// WAP2 Connection
				connSuffix = ";ConnectionUID=" + uid;
			}
What is curious, in the other networks it works and connection is correctly established...

any ideas? thanks in advance
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry Professionals > App Developers   SIM card with no internet connection from a blackberry app

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes