I've just started out with android and write a simple dialog app with some random strings presented to the user. I started to think about best way to do that?
if strings.xml consist of strings like:
<string name="quote1">blaha blaha</string>
<string name="quote2">chit chat</string>
I guess there's a better way then generating a random int and then do
case 1:
R.id.quote1
I guess it will end up with at least 50 different quotes in that file, that's one ugly switch ..
Best regards