Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
amolsarmalkar
Posts: 13
Registered: ‎10-25-2008
My Device: Not Specified

Re: HttpDemo and HttpConnection problem

Thanks  for this precious note,

 

Initially I am trying it through Blackberry 9000 simulator.

So what kind of software version should I mention for it while setting connection property?

I opened Help /about of 9000 simulator And I found there

"Blackberry samartphone simulator 2.10.0.78".

2.10.0.78 ....is it the software version?

Please use plain text.
New Developer
amolsarmalkar
Posts: 13
Registered: ‎10-25-2008
My Device: Not Specified

Re: HttpDemo and HttpConnection problem

thanks a lot for ur help.

 

it works with

http.setRequestProperty("User-Agent", "BlackBerry9000/4.2.2"); and file is posted with that.

Please use plain text.
Administrator
MSohm
Posts: 14,310
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: HttpDemo and HttpConnection problem

The DeviceInfo.getSoftwareVersion() can be used to get the version.  This sample shows how to access it on BlackBerry handhelds running pre 4.3.0 handheld software.

 

How To - Retrieve the BlackBerry Device Software version
Article Number: DB-00150

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/796557/800332/800620/...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
mlera
Posts: 9
Registered: ‎10-24-2008
My Device: Not Specified

Re: HttpDemo and HttpConnection problem

Hi,

 

I still cant make http connection with my bb device, can you post some of your code (how to make the connection) so i can try it. Thanks a lot.

mlera

Please use plain text.
Developer
Developer
rab
Posts: 283
Registered: ‎07-22-2008
My Device: Not Specified

Re: HttpDemo and HttpConnection problem

How about:

 

http.setRequestProperty("User-Agent",  "Profile/MIDP-2.0 Configuration/CLDC-1.0");

 

I have been using this setting all along and it worked fine with both TCP/IP and MDS.

 

Except the recent bold 9000 which is giving problems even when using direct TCP/IP.

 

 

Please use plain text.
New Developer
amolsarmalkar
Posts: 13
Registered: ‎10-25-2008
My Device: Not Specified

Re: HttpDemo and HttpConnection problem

Hi mlera,

 

I have not worked on device side.Whatever I did(File post) is on Blackberry 9000 simulator.

Give me ur private email id ,I will post u the code.

Please use plain text.
New Developer
mlera
Posts: 9
Registered: ‎10-24-2008
My Device: Not Specified

Re: HttpDemo and HttpConnection problem

Hi, my email is mlera@mobile-i-business.com

Thanks for your help.

 

Please use plain text.