-
11 Jun 2012 10:13 AM #1
Routes, History and Back Button in Android
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
-
13 Jun 2012 3:44 AM #2
-
14 Jun 2012 12:58 PM #3
Maybe someone from sencha can give some guidance?
-
15 Jun 2012 9:54 AM #4
I've asked someone from the Touch team to provide some guidance here.
Aaron Conran
@aconran
Sencha Architect Development Team
-
15 Jun 2012 11:11 AM #5
-
19 Jun 2012 1:06 PM #6
Bump on this, Aaron. Did you find anyone willing and able to explain it, with some good examples?
Allister
-
20 Jun 2012 3:33 AM #7
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.
-
20 Jun 2012 11:38 AM #8
Any chance of looking at your controller code for an example of the step back?
Allister


Reply With Quote