T
T
TheDoctor2017-07-20 09:59:26
Android
TheDoctor, 2017-07-20 09:59:26

android studio. How to disable return to activity?

Hello.
How to disable the return to the first activity?
In my case, this is an authorization form.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan, 2017-07-20
@TheDoctor

https://stackoverflow.com/questions/1898886/removi...
first answer on google)
You can achieve this by setting the android:noHistory attribute to "true" in the relevant entries in your AndroidManifest.xml file. For example:

<activity
    android:name=".AnyActivity"
    android:noHistory="true" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question