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 <[email protected]> wrote: > 2011/5/2 Ted Hopp <[email protected]>: > > > For every new project, I always have to add the following lines to > > proguard.cfg: > > > -keepclassmembers class * extends android.app.Activity { > > public void *(android.view.View); > > } > > > Otherwise the onClick methods disappear when I publish the app. Is > > why? > > > > > there a way for us to change the default proguard.cfg file that's > > created with a new project? > > > -- > > 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 -- 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

