On Mar 21, 1:28 pm, Kumar Bibek <[email protected]> wrote: > I don't think so it is possible.
Thank you, but after much digging around, I figured out that this is indeed possible. Here's what I did (under MacOSX; it should work the same under Linux, but there will no doubt be slight differences under Windows): 1. Write a script to read gen/package.name/R.java and res/values/ strings.xml and then generate an extra helper class as I described above. Make sure that the script is chmod-ed to be executable. 2. Go to [current project]->Properties->Builders. 3. Select "New". 4. Select "Program" (I guess this can also be done via an Ant script, but I didn't try it). 5. Give the builder a name in the "Name" field of the "Main" tab, and then fill in "Location", "Working Directory", and "Arguments as appropriate. The "Location" field is the full pathname of my script. 6. Optionally fill in any appropriate data in the "Refresh", "Environment", and "Build Options" tabs. I just kept the defaults in each of these tabs, but you may want to tweak some of these options, depending on how you want your builder to run. 7. Select "OK". 8. Make sure that this new builder appears after all the other ones by the use of the "Up" and "Down" buttons. 9. Select "OK" again. This works for me. Now, every time my project gets rebuilt, my helper class gets automatically generated. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

