views:

1319

answers:

1

Is there anyone here who have real-world experience on this topic and is willing to share his experiences on subject? Links to guides/code/step-by-step instructions are highly appreciated.

Thanks!

+9  A: 

There is a SourceForge product called "ProGuard", and it works for the Android platform (see http://proguard.sourceforge.net/FAQ.html#android).

Yes. Google's dx compiler converts ordinary jar files into files that run on Android devices. By preprocessing the original jar files, ProGuard can significantly reduce the file sizes and boost the run-time performance of the code.

It optimizes, shrinks and obfuscates your application.

You can find more information about ProGuard here: http://proguard.sourceforge.net/

(It even can reduce the total library of Java Standard edition in 16 minutes: 66% less size, faster performance ánd obfuscation!)

(No experience on ProGuard for the Android, but used it many times for Java Standard Edition.)

Pindatjuh
It works with Android, though depending on which version of Android you may have to make some adjustments or the bytecode verifier will get cranky. -allowaccessmodification may be needed, -mergeinterfacesaggressively should not be used, and older versions may need -optimizations !code/simplification/cast.
fadden
any tutorial on how to use proguard?
aryaxt