Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 3 Jahren, 5 Monaten
Letzter Beitrag:
vor 3 Jahren, 5 Monaten
Beteiligte Autoren:
Yogi Yang, Fabrice Harari, Allard

How to prevent app from going back to log in screen

Startbeitrag von Yogi Yang am 25.09.2014 06:15

In an Android App that I am developing in WM 17.

I have to proivde a log in screen. Here user has to first log in with valid credentials and then will be able to access various features of the app. Now what is happening is that after loggin in if the user presses the back button on the phone the app goes back to the login screen. How to prevent this behaviour and instead ask user whether he wants to close the app.

TIA

Yogi Yang

Antworten:

Hi Yogi,

I am no experianced app developer but I think itis the same as with webpages.

In the " when pagedisplay section " you have to check if the user is already loged in. So that if he hits the back button and the page is called again you can give the info that you want. ( message asking if he wants to stop etc)or go directly to the first secure page

So If you log in and login is succesful you have to set a global variabele of for instance the userit userid. (GNuserid)

In every page, in a webpage it is done in the template, you check if the user exists and if not display the loginpage

So on the loginpage you can do a same kind of check


Regards
Allard

von Allard - am 25.09.2014 07:17
Thanks for the Hint.

Let me check this and get back.

Regards,

Yogi Yang

von Yogi Yang - am 25.09.2014 07:53
Hi

the simplest way to do that is to NOT "open" the second window, but to "USE" it instead. With that function, the second window becomes the first one and only one known

Best regards

von Fabrice Harari - am 25.09.2014 09:45
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.