Reputation: 907
I have to use many url strings in Android project.
First I stored them as class variable
but there are so many strings so I tried to store them as string resources in strings.xml
.
However it's too hard since url includes a lot of special characters like &, /, %
I have to convert them using <![CDATA[]>
.
What is the most effiecient way to store those strings in Android?
Upvotes: 0
Views: 293
Reputation: 3061
If they are URLs, there is no point in storing them in strings.xml. Strings.xml is for internationalization and localization and URLs don't need that. So store them in a constants class like you were doing before.
Upvotes: 1