Get values from xml in Android Java



I have created a new xml file with the name "constant.xml" in the folder values.


How can I access the values?


The file is construced like the strings xml. For this I need only



getString(R.string.STRING_NAME).


But R.constant.STRING_NAME is not avaiable.


No comments:

Post a Comment