Create with URI

Report a typo

Sort the lines in the right order to create a MediaPlayer with the provided URI.

Reorder lines using drag or arrows. Adjust indentation with left buttons
                val mediaPlayer = MediaPlayer().apply {
              
                setDataSource(applicationContext, myUri)
              
                }
              
                start()
              
                prepare()
              
___

Create a free account to access the full topic