开发者

How to read manifest file from dependent JAR in Android?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜