[android-developers] Re: Proguard and onClick attribute

2011-05-01 Thread Ted Hopp
Well, evidently it's already mentioned in passing in issue 16384. I added my vote to the issue. On May 1, 11:01 pm, Romain Guy wrote: > Methods referred by the XML onClick attributes are invoked by reflection, > which is why Proguard believes they should be removed. You should file a > feature r

Re: [android-developers] Re: Proguard and onClick attribute

2011-05-01 Thread Romain Guy
Methods referred by the XML onClick attributes are invoked by reflection, which is why Proguard believes they should be removed. You should file a feature request (enhancement) at b.android.com if you'd like the tools to keep these methods. On Sun, May 1, 2011 at 6:55 PM, Ted Hopp wrote: > Appar

[android-developers] Re: Proguard and onClick attribute

2011-05-01 Thread Ted Hopp
Apparently proguard decides that it's an unused method because nothing in my code references it, and optimizes it away. On May 1, 9:10 pm, a a wrote: > 2011/5/2 Ted Hopp : > > > For every new project, I always have to add the following lines to > > proguard.cfg: > > >    -keepclassmembers class