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. simulating a voice call


The android emulator doesn't support audio input capture, so can I
simulate that a person is speaking as input to the android emulator by
playing a sound file? The party at other end would hear the sound file
as voice.




2. Basic HTTP authentication with M5 SDK - What is the right way to do it?

Hello guys!

I'm trying to achieve a basic HTTP authentication. After hours of try
and error I'd like to ask you what is the right way at the moment to
achieve that.

Here is my source code at the moment:

This approach doesn't work and I don't really get why. (with normal
Java applications it works just fine)

I'm really looking forward getting some ideas from you.


3. Basic HTTP authentication with M5 SDK - What is the right way to do it?

4. When is ADC II starting please?

5. Android at O'Reilly OSCON - Portland Oregon

6. AndPipes - Pipes for Android - (with playable Demo)

7. Using GtalkService on two or more emulator instances on the same machine solution