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
Contributor
coolmk09
Posts: 31
Registered: ‎08-30-2011
My Device: 9810
My Carrier: idea celluler

Url redirect problem in Blackberry OS 5

[ Edited ]

Hi all,

 

I am developing BlackBerry app for OS 5.0, My app uses browserField for its Authentication. But when I run the browserField on BlackBerry OS 5.0, it gives me following error.

 

"Could not select proper transport Descriptor for url https://my secure url" 

 

 

I am using following code :

 

"

String defaultUrl = "https://secure-content-url"

 

BrowserFieldConfig bfc = new BrowserFieldConfig();
bfc.setProperty(BrowserFieldConfig.NAVIGATION_MODE,
BrowserFieldConfig.NAVIGATION_MODE_POINTER);
bfc.setProperty(BrowserFieldConfig.ENABLE_COOKIES, Boolean.TRUE);
bfc.setProperty(BrowserFieldConfig.JAVASCRIPT_ENABLED, Boolean.TRUE);
bfc.setProperty(BrowserFieldConfig.ALLOW_CS_XHR, Boolean.TRUE);

 

//adding browser field to screen

bf = new BrowserField(bfc);

this.add(bf);

 

//get contents

bf.requestContent(defaultUrl);

"

 

Above code works fine for OS 6 and OS 7.0 but not in OS 5.0, can anyone tell me the reason?

 

Any help is appreciated

 

 

Thanks

Manish Kumar 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Url redirect problem in Blackberry OS 5

Hi Manish,

 

This error means that the application couldn't find a transport to make the network connection. You may want to specify a ConnectionFactory:

http://supportforums.blackberry.com/t5/Java-Development/Sample-Code-Using-the-ConnectionFactory-clas...

 

And ensure that the transports being used are fully supported/available by the device and wireless data plan.

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.