title: Proguard does not obfuscate gui components
body: <p>I would like to use ProGuard to obfuscate my Android app. This works fine. But my gui classes, which extends acitvity, view and sherlockactivity are not obfuscated. Here is the proguard.cfg</p>
  
  <pre><code>-injars      bin/classes
  -injars      libs
  -outjars     bin/classes-processed.jar
  -libraryjars C:/Users/android-sdks/platforms/android-17/android.jar
  
  
  -dontpreverify
  -dontoptimize
  -repackageclasses ''
  -allowaccessmodification
  -optimizationpasses 5
  -optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
  
  -keepattributes *Annotation*
  
  -dontwarn    sun.misc.Unsafe
  -dontwarn    com.actionbarsherlock.**
  -dontwarn    com.google.common.**
  
  -keep class android.support.v4.app.** { *; } 
  -keep interface android.support.v4.app.** { *; } 
  -keep class com.actionbarsherlock.** { *; } 
  -keep interface com.actionbarsherlock.** { *; } 
  
  -keep public class * extends android.app.Activity
  -keep public class * extends android.app.Application
  -keep public class * extends android.app.Service
  -keep public class * extends android.content.BroadcastReceiver
  -keep public class * extends android.content.ContentProvider
  -keep public class * extends android.view.View
  -keep public class * extends android.view.ViewGroup
  -keep public class * extends android.support.v4.app.Fragment
  
  -keepclassmembers class * extends android.app.Activity { 
  public void *(android.view.View);
  }
  -keepclassmembers class android.support.v4.app.Fragment { 
  *** getActivity(); 
  public *** onCreate(); 
  public *** onCreateOptionsMenu(...); 
  }
  -keepclassmembers class * extends com.actionbarsherlock.ActionBarSherlock {
  public &lt;init&gt;(...); 
  }
  
  -keepclasseswithmembers class * {
     public &lt;init&gt;(android.content.Context, android.util.AttributeSet);
  }
  
  -keepclasseswithmembers class * {
    public &lt;init&gt;(android.content.Context, android.util.AttributeSet, int);
  }
  
  
  -keep public class * extends android.view.View {
     public &lt;init&gt;(android.content.Context);
     public &lt;init&gt;(android.content.Context, android.util.AttributeSet);
     public &lt;init&gt;(android.content.Context, android.util.AttributeSet, int);
     public void set*(...);
  }
  
  -keepclassmembers class * implements android.os.Parcelable {
      static android.os.Parcelable$Creator CREATOR;
  }
  
  -keepclassmembers class **.R$* {
      public static &lt;fields&gt;;
  }
  
  -keepclassmembers class com.brainyoo.brainyoo2android.ui.html.BYJavaScriptInterface {
     public *;
  }
  </code></pre>
  
  <p>First, I thought activities can´t be obfuscated because of the reflection call</p>
  
  <pre><code>myactivity.class
  </code></pre>
  
  <p>I've tried to add:</p>
  
  <pre><code>- keep public class mypackege.myactivity.class
  </code></pre>
  
  <p>But it does not solve the problem. Any ideas how to obfuscate the gui elements?</p>
  
  <p>Thanks
  Christine</p>