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

42587 New In box, Komatsu 7870-32-2110 Thyristor
$282.04
42587 New In box, Komatsu 7870-32-2110 Thyristor pictureNational C150PB PHASE CONTROL THYRISTOR Silicon Controlled Rectifier 1.2KV 70A
$35.0
National C150PB PHASE CONTROL THYRISTOR Silicon Controlled Rectifier 1.2KV 70A picture2 Pcs NOS SEMIKRON SEMIPACK1 SKKT-56/14E SKKT5614E Thyristor Diode MOSFET Module
$17.0
2 Pcs NOS SEMIKRON SEMIPACK1 SKKT-56/14E SKKT5614E Thyristor Diode MOSFET Module pictureThyristor powwer controller EUROTHERM CONTROLLER TE10A analog input 4-20 ma
$119.0
Thyristor powwer controller EUROTHERM  CONTROLLER TE10A analog input 4-20 ma pictureTHYRISTOR BLOCK, 40A 1600V,  ABB 4858 232-16
$55.0
THYRISTOR BLOCK, 40A 1600V,  ABB 4858 232-16 picture






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