How can I read user input in Android?

前端 未结 2 460
臣服心动
臣服心动 2021-01-25 21:29

I need to read a user input in android to process it later.

How can I do this?

In iPhone SDK I\'d do something like this:

-(IBAction)command {
           


        
2条回答
  •  情话喂你
    2021-01-25 22:30

    Put an EditText in your UI, and call getText().toString() on it when you need the value that the user typed in.

提交回复
热议问题