On Mon, Apr 26, 2010 at 5:43 PM, Zaid <zaid.a...@gmail.com> wrote: > the error eclipse gives is "The method q0(int) is undefined for the type > R.string" >
In this context, q0 is an int, not a function, so you can't use it like one. > 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!". > R.java is an automatically generated file. You are not supposed to be modifying it. You will either want to add all the strings you want to choose from into a list and than select a random number to use to index the list or use reflection to get the name of one of the resource IDs plus a randomly selected number. The former option will be much easier. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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