1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default Routes, History and Back Button in Android

    The Android device hardware back button and how to harness it to step back through app views with routes and a history stack. Is this possible and, if so, how do you do it?

    I realise you need to capture the back button within PhoneGap, but then, can that be referenced in a history stack?

    Could anyone help with this - maybe with a simple example done in Architect? My app is based around a tab panel set of containers and I want to step back through any container/panel views I've previously called.

    Thanks
    Allister

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default

    Still hoping....

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default

    Maybe someone from sencha can give some guidance?

  4. #4
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    139
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default

    I've asked someone from the Touch team to provide some guidance here.
    Aaron Conran
    @aconran

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default

    Thanks Aaron - much appreciated.
    Allister

  6. #6
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default

    Bump on this, Aaron. Did you find anyone willing and able to explain it, with some good examples?

    Allister

  7. #7
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    604
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default

    Hi,
    I have had the same problem and have talked a lot with Sencha about it via the Forum and Support tickets.
    The best solution I have (my own solution) is to use history.go(-x) in a smart way. This can give you a close to native feel with tabPanel. If you use routes in the correct way.
    But to get a 100% native feel you have to wrap your application for stores so you have complete control.

  8. #8
    Sencha User
    Join Date
    Aug 2011
    Posts
    206
    Vote Rating
    8
    allisterf is on a distinguished road

      0  

    Default

    Any chance of looking at your controller code for an example of the step back?

    Allister

Thread Participants: 2

Tags for this Thread