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
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

How to stop the loading of html in browserfield on closing or pressing back button

[ Edited ]

Hi

I have a html page loading in browserfield. But i want when i press the back button the loading gets stopped.

 

I have searched many forums but didn't find the solution.Here is the link:

http://supportforums.blackberry.com/t5/Java-Development/How-to-stop-browserfield-requestContent-meth...

http://supportforums.blackberry.com/t5/Java-Development/How-to-stop-the-loading-of-html-in-browserfi...

 

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to stop the loading of html in browserfield on closing or pressing back button

Any reply??

how can we stop loading the content?

Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to stop the loading of html in browserfield on closing or pressing back button

[ Edited ]

Hi

I have to play video and display html page.

The problem is if i passed  the html link in an argument and browserscreen open, the html page gets downloaded.If i press the escape button the downloading continues.And next time if i pass some other url, the previous html page gets open.

 

Any reply??

 

protected boolean keyDown(int keycode, int time)
    {
        if (Keypad.key(keycode) ==  Keypad.KEY_ESCAPE)
        {

            
            UiApplication.getUiApplication().pushScreen(new Screen1());
            UiApplication.getUiApplication().popScreen(BrowserScreen.this);
            return true;
        }

        else
        {
            return super.keyDown(keycode, time);   
        }

Highlighted
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: How to stop the loading of html in browserfield on closing or pressing back button

Hey its urgent.

Any reply?