I'm not after resources from within another JAR, I have resources
within my JAR that I want to use within my JAR so it's all self
contained. If you have a look at Android.jar you'll see that there are
indeed a number of images etc. under the resources folder. Why are
they there if resources can't exist with a jar?

How are those resources used with Android.jar? I take it there's some
other mechanism used to read them when they need to be used?

On Jan 17, 2:53 am, "Dianne Hackborn" <[email protected]> wrote:
> You can't do that, resources can't be linked from another .jar.  (Actually
> resources can't even exist in a .jar, that is a key part of what makes an
> .apk and .apk and not just a plain .jar).
>
> On Fri, Jan 16, 2009 at 2:32 PM, [email protected] <
>
>
>
> [email protected]> wrote:
>
> > Hi,
>
> > I've been trying to create (and include in a new application) a JAR
> > file, I've seen all the information on the web regarding how to do
> > this in Eclipse. All seems to go well and I can add my newly created
> > JAR and even debug into it from an app that I've added it to. The
> > problem I am having is that the R.Java file that is included in the
> > JAR (from my original app that I generated the JAR from) seems to
> > point to rubbish/incorrect data when I run the app.
> > I have a couple of images and text files that I need to reference from
> > within my JAR and I am using the usual 'R.raw.settings' etc and it
> > seems to pickup the correct value from the R.Java that gets included
> > in the JAR. I'm under the impression that these values are no longer
> > valid when the JAR is included in the new application and it's
> > returning data from some random place?
>
> > Does anyone happen to know how I can create a JAR file that I can
> > include resources in and how to reference them etc? I'm sure this must
> > actually be possible as Android.jar contains a number of images that
> > must be used internally?
>
> > Thanks,
> > Steve
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  All such questions should be posted on public
> forums, where I and others can see and answer them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to