BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-22-2009, 11:54 AM   #1 (permalink)
New Member
 
Join Date: Dec 2008
Model: 8310
PIN: N/A
Carrier: Cellcom
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Cool Blackberry bold platformRequest after open connection

Please Login to Remove!

Hi,
I've a code that working on 8310 Curve but not working on bold 9000.
The problem: Midlet is not able to launch web page after opening connection (and closing) using platform request.
Code:


Code:
				http = (HttpConnection) Connector.open(formatUrl(url), Connector.READ_WRITE);
				System.out.println("---> Open connection 2");	
				//Initiate an Http Post request..
				http.setRequestMethod(HttpConnection.POST);
				http.setRequestProperty("Accept", "*/*");
				http.setRequestProperty("Content-type","multipart/form-data");
				http.setRequestProperty("Cache-Control", "no-cache");
...

Code:
			http.close();
Code:
AppManager.get_instance().get_midLet().platformRequest(Url);
I tried lowercase url and closed connection every time I could. I tried system.gc() (garbage collector) and used synchronized functions.
Also used exceptions.
The problem is that 90% of the time, native browser opens up on loading screen and is unable to reach page. This happens even I change the url to some working url, the problem still occurs, so the problem is not the url.
If I launch platform request first (before opening connection) everything works fine.

Either way, the code works on 8310 and not on 9000.
I can, I'm not saying that I'm, but I can jump out of the window right now.
please help.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

PHILIPS ADVANCE HID Ballast Kit 71A8493-001DC High Pressure Sodium Bulbs 400W
$125.0
PHILIPS ADVANCE HID Ballast Kit 71A8493-001DC High Pressure Sodium Bulbs 400W pictureLOT 10 ADVANCE RSM-175-S-TP MAGNETIC FLUORESCENT BALLAST OPERATES RSM175STP
$29.98
LOT 10 ADVANCE RSM-175-S-TP MAGNETIC FLUORESCENT BALLAST OPERATES RSM175STP pictureLot of 5 Advance Mark lll Energy Saver Rapid Start Ballast System R-2S40-1-Tp
$15.0
Lot of 5 Advance Mark lll Energy Saver Rapid Start Ballast System R-2S40-1-Tp pictureLot 5 Sylvania Quicktronic QHE3X32T8/UNV ISL-SC 2 Lamp Electronic Ballast
$13.25
Lot 5 Sylvania Quicktronic QHE3X32T8/UNV ISL-SC 2 Lamp Electronic Ballast pictureLot Of 5 MagneTek Triad B232I277RH 277-Volt Electronic Light Ballasts
$25.25
Lot Of 5 MagneTek Triad B232I277RH 277-Volt Electronic Light Ballasts picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.