Reputation: 11
I wanted to change the text in my Hello World app to Hello Android. So, I've changes this line:
android:text="@string/hello_world" />
To
android:text="@string/hello_android" />
I have also created a string in the strings.xml file: Name: hello_android Value: Hello Android!
When looking at my graphical layout, everything seems in order: the text says Hello Android. But when running it in an emulator, it still says Hello World.
What did I miss?
Thanks in advance!
Upvotes: 1
Views: 166
Reputation: 4219
Try a full Clean on your project and then run the application. Sometimes when you make changes to string,layouts,ids (stuff that have a specific ID in your R file) Eclipse creates a mess of those IDs, and as a result you get the error you see.
If a simple, clean and build doesn't change anything, try uninstalling the app and running the project again.
If neither worked, check if you have multiple files with strings that contain the same string with different values.
Upvotes: 0
Reputation: 698
This happens to me a lot. The emulator doesn't always start the new version of the application, but resumes a running instance. Try uninstalling the App from the emulator and compile the code again :)
Upvotes: 2