|
| Back Button - WM19 - Android |
| Iniciado por guest, 13,nov. 2014 10:01 - 8 respuestas |
| |
| | | |
|
| |
| Publicado el 13,noviembre 2014 - 10:01 |
Hi,
Does anyone know how to capture the press of the 'Back' button in Android? I've tried putting a Cancel button on, but it still allows the Back button event to happen.
Thanks
Piotr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2014 - 15:57 |
| you can't stop back button or home button . not in WM19 . |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2014 - 16:44 |
| The cancel-button works for me! (Samsung tab3) |
| |
| |
| | | |
|
| | |
| |
| Publicado el 13,noviembre 2014 - 16:55 |
Did you check this help page?
<a class="ExternalLink" rel="nofollow" target="_blank" href="http://doc.windev.com/en-US/?9000108&name=Specific_features_of_applications_for_Android#NOTE5_1">http://doc.windev.com/en-US/…</a> |
| |
| |
| | | |
|
| | |
| |
| Publicado el 14,noviembre 2014 - 00:50 |
Thanks for the replies.
Paulo: Yes, I've seen that web page, but couldn't get the Cancel button to fire, which leads me to:
Arie: Could you post the code you are using please?
Many thanks Piotr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 14,noviembre 2014 - 07:21 |
Hi Piotr,
NextTitle("Naboo DVD") IF YesNo("Do you wish to exit the application?")=Yes THEN EndProgram() ELSE ReturnToCapture(MySelf) END |
| |
| |
| | | |
|
| | |
| |
| Publicado el 14,noviembre 2014 - 15:55 |
Hi Alexander,
Thank you for that. What event in Android are you putting that code in, into the Click Event of the Cancel button OR the Window Closing Event?
Many thanks
Piotr |
| |
| |
| | | |
|
| | |
| |
| Publicado el 16,noviembre 2014 - 00:28 |
Hi Piotr,
the code is from the click event of the button, in the WinDev simulator the code doesn't work (only the windows close event work), so compile, send the .apk to your device or start the Google Android SDK-ADB simulator, there the code works.
yours Alex |
| |
| |
| | | |
|
| | |
| |
| Publicado el 17,noviembre 2014 - 20:28 |
Hi Alexander,
Thanks a lot, that worked great !
Cheers
Piotr |
| |
| |
| | | |
|
| | | | |
| | |
|