Android What is the best way to store urls? Static data members or in String.xml?

I have a large number of URLs (almost 30) in my application. I put them in a class as static data elements. I want to ask if it is better to store this in a String.xml file?

+6
source share
2 answers

Store them as a string resource if the URL is not changed. It looks like public static final

+6
source

Saving them as string resources gives only an advantage if you have different URLs for different languages ​​/ locales. Otherwise there is no use.

+1
source

Source: https://habr.com/ru/post/903585/


All Articles