December 7th, 2011, 02:48 AM
|
#2 (permalink)
|
|
Premium Member
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
|
Do means when you replace:
Code:
setContentView(R.layout.main);
with:
Code:
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
What exactly are you doing? I don't get why you hitting Enter, for example. It should be enough to copy the new code, highlight the old code, then hit Control+V (or Command+V on Mac) to paste the new code over the old code.
Also, which operating system and which version of Eclipse are you using?
|
|
|