I used your XML and ran your code on my Galaxy Tab.
I was able to punch in a number in the text field with no problem.
On Thursday, August 23, 2012 2:54:25 PM UTC-5, RKS wrote:
>
> Ok. Here goes:
>
> public class MainActivity extends Activity implements OnClickListener {
> EditText numTxt;
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate...
>
> Button oneButton = (Button)findViewById(R.id.oneButton);
> oneButton.setOnClickListener(this);
> //all other buttons same except id
> ...
> numTxt = (EditText) findViewById(R.id.editText1);
> }
> public void onClick(View v) {
> switch (v.getId()) {
> case R.id.oneButton:
> numTxt.setText(numTxt.getText().toString() + " " +
> "1");
> break;
> //all other cases the same
> ...
> }
> }
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en