A
A
artanets12016-07-07 10:50:45
Android
artanets1, 2016-07-07 10:50:45

Android studio how to make the buttons continue to respond when the screen is rotated (landscape/portrait)?

I am studying application development in Android studio, I made a small application that plays online radio according to this lesson .
But when the device screen position changes, the buttons work like with a new window they start the radio again on top of the previous one and do not stop the stream that has already been turned on.
How can this be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2016-07-07
@aol-nnov

this is how it should be fixed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question