• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Problem displaying int

Are you taking about the strings.xml file?
If so, all lines in there should always only be of type string.

You could type your number as a string then in your code, use
Code:
Integer.parseInt(getString(R.string.myintasastring))
to convert it.

However, the strings.xml file is intended to be used to make it easy to translate your apps.
A better solution would be to have a generic xml file (in the xml subdirectory) or a data file (in the assets directory).
 
Back
Top Bottom