Re: eclipse android java xml strings
Originally Posted by
aspidistra
this seems overly complex .. why isn't "hello world" in the program code (say main is it?)
If you think about it, it's actually a very good idea.
What happens if you want to release this app in another country which speaks a different language? If your Strings are hard coded in the Java classes, then you would have to change them all and rebuild your app specifically for each country.
By using an xml file with the Strings in, you can have a different xml for each language. You can now easily deploy your app in different languages without ever having to change the Java code.
- "Make me a coffee..."
- "No"
- "sudo make me a coffee"
- "OK"
Bookmarks