Basically, i have one Button and an EditText controls on activity. How to get value of the EditText to display in a message box when the button is clicked?
Change to Edittext Object:
Above the onCreate method of your activity, you declare two variables to hold references to EditText and Button. Then in the onCreate method, you create references to the controls and attach the button to click action using setOnClickListener method.
This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages: