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
Developer
Schwoebel
Posts: 82
Registered: ‎12-16-2010
My Device: BlackBerry Storm 9950
Accepted Solution

BrowserField error workaround - Video Files

I am parsing a local HTML file to display two links to local video files.  Upon selecting them I get an error Unauthorized Attempts to monitor key presses.

 

How can I circumvent the error and open the file in the Browser instead of the BrowserField?

 

I've looked at BrowserFieldListeners, but none of them are dong what I would like them to do.

 

The file is located on the SDCard.

 

I just need to extract the selected URL and open like this.

 

Browser.getDefaultSession().displayPage(url);

 

This is in a 5.0 environment.

Please use plain text.
Developer
Schwoebel
Posts: 82
Registered: ‎12-16-2010
My Device: BlackBerry Storm 9950

Re: BrowserField error workaround - Video Files

[ Edited ]

there is no answer to the above.

 

I opened the HTML in a BrowserSession and it works fine.

Please use plain text.
Developer
gayatri
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Re: BrowserField error workaround - Video Files

there is any solution for above post, i am also facing same problem. 

did any one solved it ?

 

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: BrowserField error workaround - Video Files

There was no problem,  the OP opened the file directly from the SD Card and it worked for him.  Try that.

Please use plain text.
Developer
gayatri
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Re: BrowserField error workaround - Video Files

i am rendering one html on browserfield and on click of that html i m trying to open one video url.

my problem is browserfiled is not open video url instead of it's show me error 

browserfield is displaying - "unauthorized attempt to monitor key presses"

Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: BrowserField error workaround - Video Files

Can you try the same thing in a completely 'clean' BrowserField, with no listeners, and just provide the initial URL on your SD Card.

 

I suspect this problem is related to processing you have added to the BrowserField. 

Please use plain text.
Developer
gayatri
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
My Carrier: Blackberry store

Re: BrowserField error workaround - Video Files

i did as you suggest but result is same 

what i did is - 

only added browserfield without listener -

 

BrowserField  m_browserField = new BrowserField();

m_browserField.requestContent("local:///sample1.html");

Please use plain text.