i am trying to choose a random string that is defined in strings.xml with the only change between the strings ID is the int . <string name="q0"> <string name="q1"> <string name="q2"> <string name="q3"> <string name="q4">
i am using this java code to generate what string to use. int RandomQ = R.string.q0 (rgenerator.nextInt(5) + 1); the error eclipse gives is "The method q0(int) is undefined for the type R.string" when i use the quick fix to create a method in R.java, it generates it. but if i try to save or run the app this happens "R.java was modified manually! Reverting to generated version!". -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en