facebook

hardware back problem and exit button : CLOSED

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #349982 Reply

    ozmen
    Member

    Hi octavio,
    I’ve done a native android application. hardware back button makes application exit. how can I correct it.

    How do I put and exit button. close (); did not work. I looked but could not find forum.

    function Page1_Self_OnKeyPress(e) {
    if(e.keyCode == 4)
    {
    Application.exit();
    }
    }

    ————————————————————————

    function Page1_Self_OnKeyPress(e) {
    if(e.keyCode == 4)
    {
    Pages.back();
    }
    }

    How do I use them..

    Mobione very successful. thnks.

    App —->>>android. Native
    Phone—->>>galaxy note2

    #350046 Reply

    ozmen
    Member

    Waiting for answers..
    my android app on my phone’s back button serves as output.

    #350048 Reply

    ozmen
    Member
    #350122 Reply

    Hi ozmen,

    The expecting behavior is if the app has multiple pages p1>p2 and user is on p2 the device back button should return to p1. Then pressing device back again will exit the app. Is this the behavior that you are seeing? or if you are on p2 and push back button your app is closed? if yes, please share your device model and android version? Also, mobione and cordova version would be helpful.

    #350202 Reply

    ozmen
    Member

    Thanks. .
    I solved the problem

    #350252 Reply

    Hi ozmen,

    Thanks for closing the loop. Marking thread as closed.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: hardware back problem and exit button : CLOSED

You must be logged in to post in the forum log in