Tuesday, June 14, 2011

Re: [android-developers] Reading from CERT.RSA from META-INF directory

On Wed, Jun 15, 2011 at 2:57 AM, Nate Totura <ntotura@gmail.com> wrote:
> Is it possible to read files in the META-INF directory such as the
> CERT.RSA file?

Sure. What exactly are you trying to do? Read from jar file?
Read from exploded jar file? What do you need those file for?
You really need to provide more details to get a useful answer.

>
> I have tried the following:
>
>  AssetFileDescriptor afd = am.openNonAssetFd("META-INF/CERT.RSA");
>
> but I get the exception:
>
>  java.io.FileNotFoundException: This file can not be opened as a file
> descriptor; it is probably compressed
>
>

Why are you using the AssetManager for this? If this is a jar/apk,
look at JarFile/JarEntry for ideas.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate