Does anyone know how to read values from MANIFEST.MF from my custom dependent JAR in Android ? I`ve tried many ways but it seems that they d开发者_开发知识库o not work for Android environment.
This will help
JarInputStream jarStream = new JarInputStream(stream);
Manifest mf = jarStream.getManifest();
Include the custom dependent jar also as a resource in your apk file, then you can read it somehow. As a custom dependency only, you are not allowed to read the jar file, or you will get false results.
精彩评论