I got it working, but not with any help from debugging aids.  I used
trial and error on the release build and found that the problem was
excessive obfuscation of method names (onClick...) that are referenced
in XML layouts.  Apparently those names must remain the same.  I
solved it by adding to my proguard.cfg file:

# This will avoid all the onClick listeners referenced from XML
Layouts from being removed
-keepclassmembers class * extends android.app.Activity {
       public void *(android.view.View);
}

This covers any onClick method regardless of how I might name it.  It
might also hit some non-onClick methods, but I figure the risk is low
that anyone would be able to make much of knowing those original names.

-- 
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

Reply via email to