I have created a string in my main.java file as follows:
String message = "Current Location \nLongitude: "+ location.getLongitude()+"\nLatitude: "+ location.getLatitude();
I want to place this string in my strings.xml file.
This way I can display the value of the string at various places in my application.
I am not sure how to do this.
Any advice?
strings.xml(or anything else in the `res` folder) at runtime. If you want to store your string you'll have to do it in SharedPreferences, a Database, or in a File in internal/external storage.