To get back on the original problem:
It seems that the current versions of Eclipse force you to use resource-strings instead of hardcoding text(strings).
My message sounds like this: 'Hardcoded string "hello", should use @string
resource'
It tells you right here: do not use hardcoded strings, use '@string' to point to the related resource-string.
So change your line of code:
Code:
android:text="hello"
to
Code:
android:text="@string/hello"
now you get another message: 'Error: No resource found that matches the given name (at 'text' with value '@string/test').'
The message sais it can not find the related resource-string. So you need to add it:
- open the 'strings.xml' file located in the 'res/values' folder.
- click on the strings.xml-tab (by default the Resources-tab is selected)
- add a new line:
Code:
<string name="hello">hello to you</string>
save your file and retry to run the app.