app Webwork hardware back button

Hello, I saw a post about it, but none of them have solved my problem. I m not able to intercept the event of the "back button" on my webworks app. My application closes just on the back key. The problem occurs only in the real device, with the Chrome its not quite the same market plugin code.

Edit: I have a 9300 BB os6 and another with the os5 does not work on both.

My config.xml file


http://www.w3.org/ns/widgets"
        xmlns:rim="http://www.blackberry.com/ns/widgets"
        version="2.0"
    rim:header="RIM-Widget: rim/widget">
  http://www.example.com/"
          rim:copyright="Copyright 1998-2012 My Corp">My Corp
  FIDS_V3
  
  
  






TCP_WIFI
TCP_CELLULAR
BIS-B
MDS
WAP2
WAP


  
  
  
  
  
  
  
  
  
  

and javascript used in index.html code

   

Thank you for responding.

The problem is that I was not including this page (index.html) in the package webworks. The web is a Web server and I put in the config.xml file of content pointing to this Web server. Is this a bad practice? The problem of adding the web project to the package is that to make changes, you need to do a full update of the application instead of change just the server.

Apart from that, now my problem is that with

blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,function handleBack(){history.back();return false;});

When I press return on the first page the app does not close because I expected to do. Is it possible to pose as

if (history.canGoBack()){
   history.back()
}else{
   exit();
}

How is this controlled BB?

Tags: BlackBerry Developers

Similar Questions

  • BlackBerry Webworks and 'hardware back button '.

    Hello

    I have problem to apply the logic of my application with the "hardware back button.

    I use jquery mobile to create a phonegap for Blackberry WebWorks (Smartphone version) application.

    When I have a link in my page as:

    
    

    everything works fine.

    But when I use the WebWorks API to hook the hardware back button ' ' like this

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,function() {
        history.back();
        return false;
    });
    

    my application is just closed. (I tested on 9800 OS6 Simulator and real device 9300 Curve 3 G with OS6)

    It is also strange, when I change the function of

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,function() {
        alert('Debug');
        return false;
    });
    

    The alert dialog will appear and then my app will not be closed (to be correct)

    So the problem is the "history.back()" inisde () calling the onHardwareKey handler function

    Can someone help me more?

    Thank you

    I upldated my sdk to 2.1.1 and don't have the problem more on Simulator 9930. I think I got 2.1.0.24 front

  • Hardware back button kills the application

    Hello

    The application is a single page application whose content is generated dynamically in javascript. She uses XMLHttpRequest to get the (xml) data to an http server.

    The problem is that very often the app just quit when you press this key. Usually, it works, but seems to fail when there is an ajax request goes on the bottom.

    It is very annoying, and I can't find I can't nothing what should I do to prevent this behavior on the javascript side.

    I could see that in the release notes of the last versions of webworks, there is a known issue that seems related to my problem:

    «If you click the previous button on a page that uses JavaScript®, the widget will close rather than return to the main page.» (1096311)"(source: http://www.scribd.com/doc/62667630/BlackBerry-WebWorks-SDK-for-Smartphones-Release-Notes-Version-2-1...)

    So, I think that the webworks developers can get an idea of what's going on. My question is if there is a solution or workaround for this problem.

    I'm not able to release the application in production because of this problem. Help is appreciated.

    Mauro.

    For anyone interested, WebWorks 2.2 solves this problem

  • The use of blackberry.audio.Player to play back audio in app WebWorks

    I'm playing some audio when the user clicks a button in my app WebWorks...

    function playAudio() {}

    var playerInstance = new blackberry.audio.Player("audio/blah.aac");

    playerInstance.play ();

    }

    It does not work. I tried all kinds of combinations and the only time where I can't not run is if I leave the audio clip of my project and put it on the card as follows:

    function playAudio() {}

    var playerInstance = new blackberry.audio.Player("file:///SDCard/blah.aac");

    playerInstance.play ();

    }

    How can I play audio that is integrated with my WebWorks app?

    Thank you

    OK fixed! I would have had a better look at the forum first: o

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/sound-will-not-play/m-p/1098623/...

    It works for me now:

    function playAudio (src) {}

    var fn = "local: audio / / / /" + src;
    try {}
    var playerInstance = new blackberry.audio.Player (fn, "audio/x-aac", true);
    playerInstance.play ();
    } catch (err) {}
    txt = "Error reading audio\n\n" + fn + "\n\n";
    txt += "Error:" + err.message + "\n\n";
    txt += "Click OK to continue.\n\n";
    Alert (txt);
    }

  • "Back" button and links

    In my application, I load a div tag and xlmhttp application from a remote server.

    Now my back button works very well unless there is a link on the remote page.

    If I add a link, say to facebook and you click on this link my app will go to facebook.  But now my back button won't take back me to my application.  And when the user clicks the EndCall hardware button to leave the app, the app now only opens to facebook and I can't return to my application.  Unless I use the material menu button and close the application.

    Now the funny thing is if I have inclued an alert in my back key override the work?

    Œuvres:

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
                        function()
                        {
                            alert("");
                            location.href = 'Home.htm';
                        });
    

    Not work

    blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
                        function()
                        {
    
                            location.href = 'Home.htm';
                        });
    

    Please help me

    The button 'back' (hardware key) issues have been resolved in version 2.3.1 of the WebWorks SDK.  You confirm that you are using this version, and if not please update and try again?

    https://bdsc.webapps.BlackBerry.com/HTML5/download/SDK

    Otherwise, it seems to be a timing issue that we need to continue the investigation.

  • output and "back" button

    Hi all

    with my webworks app, I have a problems

    1 - ButtonBack not revisit history

    2-red button do not close application simply run it in the background

    3 - when I close the application with option and close, I can't restart application (close app on the boot image)

    Here is my config file


    http://www.w3.org/ns/widgets ".
    "xmlns:RIM ="http://www.blackberry.com/ns/widgets"
    version "2.0.0.0" = >

    Mobile CAM


    Banking application Mobile CAM
     

      Rachid Loubaris


    onFirstLaunch = "true" / >

    http://162.251.193.118/webapp/default.aspx"/ >

    subdomains of http://162.251.193.118/webapp"="true">
     
     

    How can I solve problem of replay request

    Thanks in advance

    solved by disabling the cach and override back button to exit

    Thank you

  • "Back" button and the buttons Add on becoming pixelated.

    I noticed that my back button and my addons button in the upper right corner becomes pixelated.
    Here is a picture of what I see, this alone, it disappears if I open firefox safe mode.

    Image 1 - "back" button: http://i.imgur.com/PCc1iQI.png
    Image 2 - button "return": http://i.imgur.com/QKGefck.png
    Picture 3 - button Add-on: http://i.imgur.com/KLczXIp.png

    Image 3 the gradient does not stand still, but it shows scan lines expanded in the background of the add-on of LastPass.

    Try disabling hardware acceleration in Firefox.

  • How can I stop the page to reload automatically when I hit the back button?

    A few months back, I upgraded to a new laptop, and since then, when I hit the back button, it refreshes the previous page from what I can understand. On my last laptop, if I was doing some research on a site and click the previous button, the search bar would be automatically ready to hit the BACKSPACE and delete what is there for a new search. Now, when I hit the back button, I have to manually click inside the search box to do, and I hate it. When you are doing research on multiple sites, like this time savers really help. This applies to regular sites (forums, online stores, etc.), not search like Google sites.

    I don't have this problem on my old laptop and does not know how to solve this problem on this one. They are the two Win7 x 64, and version of the browser is not the issue. I started Firefox on this computer that same exact on the last of them, and after the updates, it's always the same. I am currently on 8.0 but will soon be upgrading to the new.

    Do you mean that the search bar on this page focus?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • "Back" button does not work with the latest version of any help?

    Hi, I use the latest version. When I go through the pages, I can not be able to return to previous pages. The back button does not work. When I click the back button, the same page, it's not coming back... Any help would be much appreciated!

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

    You can click right back or front button to open the history list.

    You can hold down the left button of the mouse either back or next to the history tab list opens.

    The current active entry has a bullet in front of it.



    If you place an entry in the historic session with the mouse tab, so you see an arrow to the left pointing (rear) left or right (forward) to show the direction.

    You can left click on an item to open it in the tab active or middle-click or Ctrl, click on an entry in this list to open that link in a new tab, just as you can with the other links.

  • Why the 'Back' button often fails for the first time after moving to a new page to work?

    During further testing, I can repeat this bug every time: it happens when I clicked on a page background (focus it and allow scrolling arrow key). After having done this, clicking on the back button does not work as expected: don't not visually get "push the button" and the browser does not return to the previous page. Instead, everything on the menu (help, all file) becomes grey as if Firefox just lost focus.

    It almost seems like Firefox 7 has a 'smart' function to prevent accidental 'Back' presses, but if so, it does not work!

    Please let me know if you need more information about this bug.

    See:

    The default value of the pref Network.http.Max - connections has been increased from 30 up to 256 in versions of Firefox 6 +.

    Try to decrease the value of the pref Network.http.Max - connections 256-30 such as used in versions of Firefox 3.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • "back" button does not return me to the area I have left in the search list

    I use version 7.0.1 of Firefox on a laptop with XP SP3. All known updates have been applied.

    I use google to search for a topic and a list of results from site. After selecting one of the conclusions, I click on the back button, I went back to the list, but my 'space' in the list does not exist and I have to look through the list to see where I was while I can click on the following entry to find.

    I don't think that something has changed in this regard in a long time for the research.

    What I would say is that you're doing the research itself open in a new tab, and each of the search results open in new tabs in this way you know when you are finished using a tab, and you will not lose your place in the search results.

    Use the keyboard shortcut to open the results of a search in a new tab in the background, so that you can keep looking at Google results before looking at the tabs you open from the research.

    Google options (gear) at the top right, and then down 'search settings ':

    [x] search results open in a new browser window.

    Firefox tools > Options > tabs

    [x] open new windows in a new tab instead.

    Then, in Subject: config (typed in the address bar)

    Browser.Search.openintab user set to true

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

    More information about the configuration variables available in
    topic: config entries and for users who do not know the process, there is Subject: config (how to change).

    From a Google search, you should have the pages open in a different tab, but with Google that is not good enough, because they have open all in the same tab, as you have noticed if you have done this.

    You can use Ctrl + click or Ctrl + Shift + click to open a link in a new tab.

    You can use app-tab to pin the tab, click the tab and choose pin - tab and conversely to unpin tab or remove the tab when finished.

    You will find interesting reading of the tabs in


    http://userstyles.org/styles/18553
  • Minimum size of tab bar - themes and skins for browser - userstyles.org
    http://userstyles.org/styles/9043
  • "back" button does not work and the home page does not display on startup

    My buttons next and previous no longer work. They show just gray and I cannot click on them.
    Also my home page does not appear when I launch firefox.
    I reinstalled firefox 4 and then I went back to firefox 3.6.16 and have the same problem in both versions.
    Don't know what to do anymore
    I just found out that when I opened a second window everything works well in the second window, but it still does not work in the first window.
    The same thing happens when I close both windows. The first window of my home page does not appear and the back button does not work, but the second window is operating normally. Including my home page.

    Try:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > appearance/themes).

    • Makes no changes on the start safe mode window.

    See:

  • My jams of mac pro early 2015 on pressing enter and back button

    My jams of mac every time I press on enter or use the back button, I always need to hover over the button on the screen. If I don't have every thing jams and I have to re - load. There also I stoped using my bank online as the jams when I try an open message to Bank. I ran the diagnostics and found nothing.

    Probably a hardware KB problem but try

    -Try to reset memory NVRAM/PRAM and SMC

    MacIntel: Reset of the controller (SMC) system management

    Subject of memory NVRAM and PRAM

    -Try to start safe mode

    OS x: what is Safe Boot, Safe Mode?

    -Start to recovery and repair the startup disk

    OS X: on OS X Recovery - Apple Support

    -If it is repairable reinstall the OSX

    How to reinstall OS X on your Mac - Apple Support

    -If you do not have a backup using disk utility to restore the internal drive to an external drive, so that you can try to recover the data.

    Format the boot disk and then do a fresh install of Mac OS x

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • Using the back button in Chrome ignores bookmarks page

    Yesterday I was browsing through my bookmarks - but today I found my 'back button' now ignores my bookmarks page & rather leads me to the page previously visited.
    My Chrome browser has started doing it a few weeks ago, so I installed Chrome Beta - it started this strange behavior.
    No idea what changed - please help...

    @Dean_Weaver

    I see the same behavior on my premium Z5 and other Xperias, since Chrome is not a Sony app, you might want to check with the developers of Chrome/Google

    You can try this, settings > apps > all the > chrome > uninstall updates > clear data

  • enableBackButtonDrag - Action Bar back button drag-need help!

    All,

    Can anyone share please an example on how to implmenet the button back dragging in adobe air. I would like to put this in my application. And I couldn't get it working properly.

    There is a api for it: enableBackButtonDrag = true;  https://developer.BlackBerry.com/air/APIs/BB10/QNX/fuse/UI/ActionBar/ActionBar.html#enableBackButton...

    Thank you!

    Here's how I solved it. It's a little complicated, because when you drag the back button you also get an ACTION_SELECTED event, which probably you hung to close the current page (round trip), which must therefore be disabled during travel.

    So if anyone has a cleaner way to do it, please let us know!

    private function initActionBar():void
    {
        actionBar = new ActionBar();
    
        actionBar.backButton = new Action(Strings.BACK[lang], null, "back");
        actionBar.enableBackButtonDrag = true;
    
        actionBar.y = display.stage.stageHeight - actionBar.height;     
    
        actionBar.addEventListener(ActionEvent.ACTION_SELECTED, onActionSelected);
        actionBar.addEventListener(DragEvent.DRAG_BEGIN, onDragBegin);
    
        display.addChild(actionBar);
    }       
    
    protected function onDragBegin(event:DragEvent):void
    {
        actionBar.addEventListener(DragEvent.DRAG_MOVE, onDragMove);
        actionBar.addEventListener(DragEvent.DRAG_END, onDragEnd);
    
        firstMove = true;
    }
    
    protected function onDragMove(event:DragEvent):void
    {
        // move the ctrlPanel with the dragged button
        display.x += event.deltaX;
    
        if (firstMove) {
            // start intercepting ACTION_SELECTED events to prevent Back-button 'tap' to register during drag
            actionBar.addEventListener(ActionEvent.ACTION_SELECTED, ignoreBackButton, false, 100);
            firstMove = false;
        }
    }
    
    protected function ignoreBackButton(event:ActionEvent):void
    {
        // do nothing and stop the event to get to trigger the onActionSelected handler
        event.stopImmediatePropagation();
    }
    
    protected function onDragEnd(event:DragEvent):void
    {
        actionBar.removeEventListener(DragEvent.DRAG_MOVE, onDragMove);
        actionBar.removeEventListener(DragEvent.DRAG_END, onDragEnd);
    
        // depending on how far the user has dragged, close the current page or snap back
        if (display.x > display.stage.stageWidth/2) {
            close();
            restoreBackButton();
        } else {
            Tweener.addTween(display, {x: 0, time: .3, transition: "EaseOutCubic", onComplete: restoreBackButton});
        }
    }
    
    protected function restoreBackButton():void
    {
        // stop intercepting taps
        actionBar.removeEventListener(ActionEvent.ACTION_SELECTED, ignoreBackButton, false);
    }
    
    private function onActionSelected(actionEvent:ActionEvent):void
    {           // TODO: add other actions
        switch(actionEvent.action.data) {
            case "back":
                close();
                break;
            default:
        }
    }
    

    My app: Get set - get up!   Get ready for the revolution snooze.

Maybe you are looking for

  • What exactly does a VPN do?

    I just set up a VPN using OS X Server on a Mac Mini! Feeling pretty proud of being given that all my attempts in the past have not led to anything, but now that I put it in place, is it in reality? I was under the impression that if I am away from my

  • F55 Freeze Mix

    Hi Peter,. Could you please add Mix freeze to the list of things that we would expect to be able to do with this camera. It is a valuable tool which was available in the previous Sony camera, and with the option of shooting in 4K, it would be a good

  • Updated Windows XP downloads, but fails to install

    Hi, I have Windows XP Professional, last month made a fresh install of windows and a complete cleaning. Everything works fine until I hit manually the windows update in the start menu to check if there are new updates for this month of April. It cons

  • Temporary fan problem

    Hi, I got an error a couple of times when my phone began to start.  The error message says that my PC has a problem with some fan (I forgot the number of specific fan) WARNING if I continues the start and using my PC it could be loss of data or even

  • Vendor and install the OTA Version

    I've implemented an application for testing with the OTA installation and it simply works great except the version as 0.0 and the seller as . If I install from the desktop using the files .alx file version and the seller are what I expected of my pro