how can I
1) Read text file from internet 2) choosing random line 3) Then converting it in uri value
Here are my answers. Are they correct? Are there better alternatives?
1&2)
Uri testUri = Uri.parse(random.choice(open((new URL("http://example.com")).openStream())').readlines()))
Thank you a lot <3
Aucun commentaire:
Enregistrer un commentaire