Relative Content

Tag Archive for androidkotlinandroid-jetpack-compose

Refreshing the screen

I wrote my first app. It displays a simple screen with an addition to complete. If the given answer is correct, I would like to refresh the screen to display a new calculation.
Currently, the old calculation remains, and the new one is inserted on the top.

How to implement it correctly MediaPlayer (jetpack compose)

I’m trying to implement a media player with the ability to stop and start audio when the app goes into the background, but it doesn’t work as expected… When the app comes back, the music doesn’t play again. I think this is because my copy of the media player doesn’t survive the app going into the background, can you tell me what I can do about it?