How to check if class exists somewhere in package?

后端 未结 4 728
南笙
南笙 2020-11-29 08:49

I\'m currently dealing with a particular issue with my paid application. Internally it contains a licensing check. The app is patched by hackers by modifying the app apk/j

4条回答
  •  孤独总比滥情好
    2020-11-29 09:40

    Not sure about android but in standard JDK you would do something like this:

    try {
     Class.forName( "your.fqdn.class.name" );
    } catch( ClassNotFoundException e ) {
     //my class isn't there!
    }
    

提交回复
热议问题