How to change String to Uri

Asked 1 years ago, Updated 1 years ago, 104 views

For example, there's a string called "songchoice" and I want to change it to "Uri". So I'm going to use MediaPlayer.create(context,Uri) How do I change String to Uri?

android java uri

2022-09-21 23:18

1 Answers

Uri myUri = Uri.parse("http://www.google.com"); You can do it in this way.


2022-09-21 23:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.