Connection HTTP - tried and tried, but I still can't make it work!
I am building this application that needs to get a XML from a web server. I got to work on the Simulator successfully, but were unable to make it work on my 8310. I have read on different transport and used the following code to try and choose the appropriate option.
Simple function to obtain the registration of WAP service.
private ServiceRecord getWAP2ServiceRecord() { ServiceBook sb = ServiceBook.getSB(); ServiceRecord[] records = sb.getRecords(); for (int i = 0; i < records.length; i++) { String cid = records[i].getCid().toLowerCase(); String uid = records[i].getUid().toLowerCase(); if (cid.indexOf("wap") != -1 && uid.indexOf("wifi") == -1 && uid.indexOf("mms") == -1 && uid.indexOf("browser") == -1 && uid.indexOf("push") == -1 ) { return records[i]; } } return null; }
Conditions used to build the string.
String connectionParameters = ""; // JDE 4.3 is required to get WLANInfo if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) { // Connected to a WiFi access point connectionParameters = ";interface=wifi"; } else { int coverageStatus = CoverageInfo.getCoverageStatus(); ServiceRecord record = getWAP2ServiceRecord(); if (record != null // In JDE 4.5 CoverageInfo changed the name of COVERAGE_CARRIER to COVERAGE_DIRECT // The constant value for both is the same, '1', so you can use that to avoid any // dependency on JDE 4.5 && (coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { // Have network coverage and a WAP 2.0 service book record connectionParameters = ";deviceside=true;ConnectionUID=" + record.getUid(); } else if ((coverageStatus & CoverageInfo.COVERAGE_MDS) == CoverageInfo.COVERAGE_MDS) { // Have an MDS service book and network coverage connectionParameters = ";deviceside=false"; } else if ((coverageStatus & CoverageInfo.COVERAGE_DIRECT) == CoverageInfo.COVERAGE_DIRECT) { // Have network coverage but no WAP 2.0 service book record connectionParameters = ";deviceside=true"; } } _url += connectionParameters; HttpConnection connection = (HttpConnection)Connector.open(_url, Connector.READ_WRITE, true);
I get an error "Failure of Tunnel" when the application is running but I have tried in vain to fix.
Feature: 8310
OS: 4.5.0.182
Carrier: Digicel Jamaica
The logic in the code above was added successfully; deviceside = true; ConnectionUID = secure WAPtrans
I'm ideas here any help would be really appreciated.
Ask a really stupid question, if you look at what he told you to use this article I mentioned in my last Post
How - to specify APN information for a direct TCP connection
Article number: DB-00532
and compare that with what you actually used, did you notice a difference?
May I suggest that read you the two articles again and specify either direct TCP APN values or WAP, not both? In fact, I'd forget the WAP values, you are better using the code in the article to extract a COnnecitionUID and use the WAP 2.
Tags: BlackBerry Developers
Similar Questions
-
Guys, before you ask me to search the forums etc, believe! that I have exhausted all possible ways to try to find out where the hell my password keeper went!
Here we are, this is the situation;
1. do you have an old Pearl 8110
2. has bought a new Pearl 9100
3. save the 8110
4 restored everything on 9100
5. when the password keeper? He isn't here!
So what I did next?
1 factory reset/wipe - not yet there.
2. download the OS6 on the site, and reloaded-still not here?
I used the application loader and I see in the application manager is electronic mail set up. All forums say I can select/deselect applications to load and unload, but I do not see the guardian of password anywhere.
Are there not just a simple binary or something I can download that I can then use DM to download on the 9100?
Someone there certainly knows what to do and get it working again?
Anyone?
Thanks in advance!
G
so I think that the operating system you have installed on your PC to 9100 is incomplete. I suggest you download it once more quite.
uninstall the earlier, install a new and at a time using loader.exe you will be able to choose financial dictionaries as well as applications including the password keeper.In any case, you cannot use the ALX file for a specific model with another model.
-
Wireless is connected with the strong signal, but I still can't get
get the 105 error message when trying to get on the internet with my linksys wusb60000
Hi RussellMohr,
What browser do you use?
If you use Internet Explorer, you can follow this link & check if it helps.
How to troubleshoot possible causes of Internet connection problems in Windows XP
As I found by searching on the issue, many users receive this error
Google Chrome code. If you use Google Chrome, you can follow this link and check if the problem persists.Webpage display issues: "this webpage is not available" (network errors 2, 102, 104, and 105)
If you need assistance, you can post your question in the Google Chrome Help Center for assistance.
Hope the helps of information.
Please post back and we do know.
-
I changed my Apple ID and password. I can sign into my itunes store account. When I try to make an application to buy the sign comes with the old ID. If I enter the old password it says account locked. Help
Tap your id in settings > iTunes and App Store and then press "disconnect" on the context menu and connect you then back with the version update of your account
-
I couldn't get into adobe flash player for an update. I went to adobe.com reregistered my user name and password. I still can't get into the adobe flash player update. Very frustrating
-
I tried to install jk1351 plotter cutter drivers but just can't make it work.
Original title: jk1351 cutter plotter usb drivers
can someone helo I tried to install readers, but just can't make it work no matter what idears
Hello1. what operating system is installed on the computer?
2 is this mentioned USB-specific problem?
3. were you able to install the drivers successfully?
4. what happens when you try to run the cutting plotter?
Note: Try again with different USB ports and see if that helps.Method 1: Follow the article if you have Windows 7 computer.
Open the hardware and devices Troubleshooter
http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter
Method 2: You can also try to check with the manufacturer and see what they have to say on this. -
Oh my? is my title lol
* original title - Hi got packard bell laptop computer, installed speedypc and scanned but pc still keeps freezing - silly instrucs pse - thx * need help of pse - no new download installed and has had this prob for a few days.
Hello nettynooross,
Here attached a link where other users have had this problem. There are several steps to try. I hope this helps out.
Microsoft Answers:
Thank you
-
Hi I have a laptop Toshiba Satellite with Windows 7 and its updates. I tried to upgrade to Windows 10 several times and I just can't make it work. After pressing the race it stops just to do something. Does anyone have any suggestions?
Tom
Hello
You can try out it by going to the link below, click on upgrade now and follow the instructions.
This tool checks your computer before starting the upgrade.
https://www.Microsoft.com/en-us/software-download/Windows10
before you perform the upgrade, I suggest that you back up all your important files on an external drive or a drive.
-
I can't open my Raw files from my new Nikon 810. With my Nikon 800 I use Bridge to select and then it opens to the PS CS5. To make it work with 810 I download the DNG Converter, but I still can't open the files. What can I do?
Hi ulcabeek,
Greetings!
What version of DNG converter that you use?
You need DNG converter 8.6 for this: 8.6 camera Raw and DNG Converter 8.6 now available
Concerning
Jitendra
-
He says I have the latest verson 7.4.0.137 but I still can't open my files NAVE camera raw. I just got the NIKON d5500 has been added and started to get discouraged.
Photoshop elements 11 will use only up to Camera Raw 7.4. You'll either need to upgrade Photoshop Elements or use the free DNG Converter provided by Adobe. The latest version of the DNG Converter is 9.1.
Adobe - Adobe Camera Raw and DNG Converter: for Windows: Adobe DNG Converter 9.1
-
I downloaded the latest version of camera raw for LR. I LR4 and cannot import pictures from my new Nikon D750. Download said it was successful, but I still can't import photos.
Lightroom does not use plug in Camera Raw. So download the latest Camera Raw did nothing at all for you. The only way to update or upgrade Lightroom is to get the latest version. If you have Lightroom 4 then the latest version of Lightroom, you have no additional cost is Lightroom 4.4.1. If the device you are using requires something newer that what is supported and that the version of Lightroom, then an upgrade to Lightroom 5.
-
I can connect to my home network, but all the other networks do not work... Error window says:
Windows could not connect to the (X)? network name?
[Link] Solve problems
[Link] Learn more about Internet connection problems
I gave security, uninstalled reinstalled wireless - uninstall security firewall reinstall and not go...
Windows 7
Hello
- What network are you trying to connect to?
- You are not able to connect to the Internet?
- Are you able to connect to the other network with wired network?
Try the methods provided and check.Method 1:
Check out the link and follow the steps.
What is network discovery?
http://Windows.Microsoft.com/en-us/Windows7/what-is-network-discoveryMethod 2:
Check out the link and run the troubleshooter.
Windows wireless and wired network connection problems
http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-WindowsMethod 3:
Reset the TCP/IP and check. Check out the link and follow the steps.
How to reset the Protocol Internet (TCP/IP)
http://support.Microsoft.com/kb/299357Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base: 322756 (http://support.microsoft.com/kb/322756/ ) how to back up and restore the registry in WindowsMethod 4:Check out the links and check out them. -
I have connected to my hotmail account, but now I can't log out
I have connected to my hotmail account, but now I can't log out
* original title - performance and security in Internet Explorer why cant I sing out *.
Hi KarenLuzar,
Thanks for posting your question in the Microsoft answers Forum. For any question on Hotmail, please visit the following link:
-
Original title: quick help please :/
my computer laptop bluetooth was working but suddenly it stopped and I don't know why... How can I make it work again please!
Hello
Hardware devices not detected or does not work - a Mr Fixit
http://support.Microsoft.com/GP/hardware_device_problemsAdd a BlueTooth device to your computer
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computerSet up a Bluetooth compatible device
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-deviceThe problems with Bluetooth devices
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devicesHow to set up a Bluetooth connection
http://www.vista4beginners.com/how-to-setup-a-Bluetooth-connectionThe Bluetooth item in Control Panel on a Windows Vista SP2 computer does not
as expected when you click on the element - for Windows 7 this check manually
http://support.Microsoft.com/kb/960531/en-usIf you need drivers try the support site for the manufacturer of your system and/or the site of the manufacturer of the real device.
BluetoothView is a small utility that runs in the background and monitor the activity of Bluetooth technology
devices around you. For each detected Bluetooth device, it displays the following information:
The device name, address Bluetooth, Major Device Type, minor device Type, first detection time,
Last detection time and more. BluetoothView can also warn when a new Bluetooth device
is detected, by displaying a balloon in your bar tasks or playing a little beep. -FREE
http://www.NirSoft.NET/utils/bluetooth_viewer.htmlBluetoothCL is a small console application that transforms all differential of bluetooth devices detected in
the standard output. For each Bluetooth device, the following information is displayed: MAC
Address, name, Major Device Type, minor device Type and possibly the name of the company of
the device (if the external file of MAC addresses - oui.txt is provided) - FREE
http://www.NirSoft.NET/utils/bluetoothcl.htmlBluetoothLogView is a small utility that monitors the activity of Bluetooth devices around you,
and shows a log of Bluetooth devices in the main window. Each time that a new Bluetooth
device coming to your area and when the unit comes out of your area, a new journal line is added with
the following information: device name, time of the event, address, Type of event ("peripheral
Arrival' or 'Device left'), Type of aircraft and the company that created the device. BluetoothLog-
View you can also specify a description for each device (according to its MAC address)
that appears in the column "Description". -FREE
http://www.NirSoft.NET/utils/bluetooth_log_view.html---------------------------------------------------------------------
Change settings for a Bluetooth compatible device
http://Windows.Microsoft.com/en-us/Windows7/change-settings-for-a-Bluetooth-enabled-deviceAdd a Bluetooth device to your computer
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computerAdd a Bluetooth device or other wireless or network device: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-or-other-wireless-or-network-device-frequently-asked-questions---------------------------------------------------------------------
More information of possible interest to some:
What is a Bluetooth personal area network (PAN) network?
http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-a-Bluetooth-personal-area-network-PanConnect to a Bluetooth personal area network (PAN) network
http://Windows.Microsoft.com/en-us/Windows-Vista/connect-to-a-Bluetooth-personal-area-network-PanI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
I paid for to upgrade my membership to the creative cloud, but I still can't use it. It is telking me wiat 15 minutes, but he spent over 2 days
Go to Adobe Creative Cloud
Hello
Please disconnect applications Adobe CC and exit Adobe CC.
Reboot the machine and then connect to the application Adobe CC and launch applications.
Hope that helps!
Kind regards
Sheena
Maybe you are looking for
-
T410i decommissioning of Win 7 x 64 Win 7 x 32
Hello I have the opportunity to buy cheaply a bestseller (2518-4QG) T410i with Win 7 x 64 preinstalled. Due to software compatibility, I would need to install Win 7 x 32. Is this possible? (Are there drivers available, etc..) How complicated is it to
-
How can I update all the constants using a typedef automatically?
I'm about to build a statemachine and State enum is a control of the typedef. Many constants are placed to the next 'State' using this typedef. Whenever I have modify the typedef enum, all constants become "pale" and I have to manually update, each a
-
Agent Extension SNMP event log has not initialized properly in windows 2008 R2
I enabled the functionality of SNMP Service and found the following error: "Error 2019: Extension SNMP event log Agent has not initialized properly in windows 2008 R2 Enterprise 64-bit. I uninstalled all related SNMP Applications and reinstalled the
-
text does not appear in the preview when preparing print
I have a report that I was preparing to print. When I click Print Preview, the text shows on the screen, but when I click on print, comes from the Preview on the screen, but no text shows.
-
HP pavilion G4: help with power on password
I forgot my password on. Disabled system code: 52647759. Help, please. Thank you