A
A
Andrew2016-06-04 11:19:50
Java
Andrew, 2016-06-04 11:19:50

How to implement random text output in a text container in Android?

I am doing my first project on android. I want to make a random text from the array appear in the text node when the button is pressed. How can this be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-06-04
@thebedcoder

First, fill an array of Strings with text, then take a string from it at a "random" index, and "put" it into an EditText.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question