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

Urgent help needed

Hi all,

 

I am developing blackberry application for both OS 6 and OS 7.I am using browserField for initial authentication using salesforce rest api.

 

I am facing a serious problem with OS 7.

 

My code snippet for browser request is following 

 

"

BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();
myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,
BrowserFieldConfig.NAVIGATION_MODE_POINTER);
bField = new BrowserField(myBrowserFieldConfig);

 

bField.requestContent("https://test.salesforce.com/services/oauth2/authorize?response_type=token&display=touch&client_id=My...");

"

 

This code works fine for BB OS 6 but when i run it on OS 7 it doesn't show the browserField properly. can anyone help me 

 

Thanks

Manish Kumar

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Urgent help needed

Hi coolmk09,

 

Can you give us some more info?

 

What do you mean by "..it doesn't show the browserField properly.". Is the browserField displayed at all? Is the content not displayed as suppose to? What happens when you try the same URL in the device browser? What happens when you try other URLs?

 

Do you get any errors/exceptions?

 

E.

Highlighted
Contributor
Posts: 31
Registered: ‎08-30-2011
My Device: 9810
My Carrier: idea celluler

Re: Urgent help needed

[ Edited ]

Hi maadani,

 

Yes, content are not displayed, its covered by a white background (on both real device and emulator) as you can see in following snap 

 

error screen.PNG

 

and this is what i am expected.

 

Capture12_48_14.jpg

 

 

Although sometimes  content become visible when i try to push some keys or slide the device (I am using blackberry torch 9810) , but not always.

 

I am not getting any error or exception.

 

When i try to load any other URL in the browser field,  it works fine.

 

Please help me to resolve this issue.

 

Thanks!

Manish Kumar

 

 

 

 

Contributor
Posts: 31
Registered: ‎08-30-2011
My Device: 9810
My Carrier: idea celluler

Re: Urgent help needed

[ Edited ]

Hi all,

 

How can i get more debug info on this issue?

 http://supportforums.blackberry.com/t5/Java-Development/Urgent-help-needed/m-p/1428947

 

Can i see device log, if yes then how ?

 

 

 

Regards

Manish Kumar

 

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: Urgent help needed

You can see the device log by: Alt+L+G+L+G