Add Images to Jar files

by RamaMohan » Fri, 13 Aug 2010 21:43:25 GMT

Sponsored Links
 HI all,

I am creating a jar file which will return  a view to any application
in which jar file is added.
I am creating all the coding without any resources files.But my
problem is i want to add images to the jar file like i want to add my
logo .

I want to add some image files to the jar and i have to use that in my

How to perform this thing,I goggled for a while but i didn't find a
solution for this.
If anyone knows ,please let me know.



Add Images to Jar files

by DanH » Sat, 14 Aug 2010 01:04:46 GMT

 What do you want to know, how to put the image into the jar or how to
get it out?

To get it out you have to use one of 2-3 different techniques --
either get in bed with JAR terminology and use the
java.util.jar interfaces, or use the openStream
interface.  The latter is probably simpler.  Note that neither of
these approaches will work with image tools that expect a simple file


Sponsored Links

Other Threads

1. How does a RemoteView get drawn


" * A class that describes a view hierarchy that can be displayed in
another process."

But unlike View class, RemoteView does not have a 'draw(Canvas
canvas)' method.
Can you please tell me which method of RemoteView causing its layout
to be drawn on screen?

Thank you.


2. sdcard in avd SDK 1.5


I've been trying to figure out how to use the sdcard that was
generated when I created the avd file for the emulator in SDK 1.5 r1.

In previous SDKs I set this in the Eclipse run configurations  -sdcard

I could then access the sdcard through DDMS etc.

How do i specify the sdcard that was created in the avd?



3. Hardware Overlay

4. i have a question about android device

5. Need help in adding image to sample snake game in SDK

6. ActivityNotFoundException when trying to start another Activity from Preferences via Intent

7. Why emulator cannot recieve incoming call?