S
S
saraev_ya2017-06-07 21:11:46
Java
saraev_ya, 2017-06-07 21:11:46

The back button (touch) on Android minimizes the application, how to make it return to the previous activity?

I wrote an application in android studio, after which I noticed that the back button in genymotion and AVD minimizes the application, what could be the problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DENIS, 2017-06-09
@Creditpower2015

Try to specify in the manifest for the activity where the transition should be made using parentActivityName
<activity
android:name=".MyActivity"
android:parentActivityName=".MainActivity" />

A
aol-nnov, 2017-06-07
@aol-nnov

what could be the problem?

for example, the backstack is empty.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question