Hi all,

Im new to android and eclipse. When i create a new android project it provides a string call "hello" and the value is "Hello world, Test1Activity" as my project name is Test1.
So when i run it the string is shown.No prob there. But if i modify the value to lets say "Hi" It does not work. A xml file is created in res folder called Strings.out.xml. Y...Im confuced. Even if i deleted it again it is created.

Plz help me.

Dani AI

Generated

As discovered, the symptom often traced to how Eclipse/ADT was launching and packaging the app. Changes in res/values/strings.xml will not appear on the device if the IDE does not rebuild and reinstall the APK, and an unexpected file inside res/ (for example a file named with uppercase letters) can also cause resource-processing problems.

Common troubleshooting checks:

  • Confirm the edited file is res/values/strings.xml and the layout actually uses the string resource (e.g. android:text="@string/hello") rather than a hard-coded literal.
  • Search the workspace for duplicate strings.xml or for the same string value; library projects or locale-specific values-xx folders can override the value.
  • Perform a full clean and rebuild (Project -> Clean...), and uninstall the app from the device/emulator before running so the APK is freshly installed.
  • Inspect the Eclipse Console and Problems view for resource/aapt errors; resource-processing failures often explain why new values are not packaged.
  • Remove any invalid resource filenames from res/ — Android requires resource filenames to be lowercase and use only letters, numbers and underscores (no capital letters, spaces or extra dots).

Additional notes: open the unexpected Strings.out.xml to see where it came from (its contents often reveal the tool or step that generated it). Disable any translation/extraction plugins while testing. Avoid editing generated files (like R.java or files under gen/); fix the source resource and let the build regenerate outputs.

I got through this. click on the project you want to run(in order to give focus) and click on the small down arrow near run button : run as:android application.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.