Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6738827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:24:53+00:00 2026-05-26T11:24:53+00:00

I am using proguard to obfuscate my android application. The android application contains some

  • 0

I am using proguard to obfuscate my android application. The android application contains some native code, which makes callbacks to fully qualified java methods. I need to not obfuscate these classes and the names of their methods. The below properly keeps the class names, but not the method names.

-keep public class com.me.dontobf.*
-keepnames public class com.me.dontobf.*
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:24:54+00:00Added an answer on May 26, 2026 at 11:24 am

    For native methods: ProGuard manual > Examples > Processing native methods

    # note that <methods> means any method
    -keepclasseswithmembernames,includedescriptorclasses class * {
        native <methods>;
    }
    

    In this case, for callback methods: ProGuard manual > Examples > Processing callback methods

    -keep class mypackage.MyCallbackClass {
        void myCallbackMethod(java.lang.String);
    }
    

    Or e.g., if all public methods may be callback methods:

    -keep class mypackage.MyCallbackClass {
        public <methods>;
    }
    

    You probably also need to keep any program classes that occur in the method descriptors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering about how to obfuscate the Android application using ProGuard tool. I've
I'm using ProGuard to obfuscate my code. My project is comprised of a few
I am trying to obfuscate my GWT (Vaadin) application using Proguard. Ive never obfuscated
Using proguard the paypal classes are not found ERROR/AndroidRuntime(3200): Caused by: java.lang.NoClassDefFoundError: com.paypal.android.MEP.PayPal I
I tried to shrink and obfuscate my Scala/Java program using Proguard. While I was
When I compile my Android Application with Proguard enabled I get the following error:
Does anyone have experience in using ProGuard and are there already measurements about application
I have two versions of the same application using identical proguard.cfg with the following
I am using Eclipse to build my Android Application. When I export the project
I've an Ant build using the Proguard config below, which is that generated by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.