LAMW : question about back button lazarus / 43-Android ---------------------------------------------------------------------- tintinux · 2016-10-24 10:20 Hi I have a main AndroidModule "A" with ActivityMode=actMain, and secondary modules "B" and "C"  with ActivityMode=actRecyclable From A, I create and init B if necessary, and show it. If I touch the back button when B is displayed, it is closed and A is displayed. This is what I expect. From B,  I create and init C if necessary, I show it and close B. C is displayed as expected. But, if I touch the back button when C is displayed, the application is closed. I'd like to display A... If I touch a button on C, running a Close, the A module is displayed as expected. How can I have the back button always going back to the main module ? Thanks ---------------------------------------------------------------------- jmpessoa · 2016-10-24 18:09 QuoteHow can I have the back button always going back to the main module ? you need:  AndroidModuleXX.TryBacktrackOnClose:= True;    // <<--------  use example: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     gApp.CreateForm(TAndroidModuleXX, AndroidModuleXX);    AndroidModuleXX.TryBacktrackOnClose:= True;    // <<--------      AndroidModuleXX.Init(gApp);  you can see the demo "AppTest1", too.