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. Sending Email using android app


I am trying to send email using the andriod application........
I have tried the following code. The problem i am facing is that the
email intent is opened
but the send to address, subject and body i snot copied to the email
and can any one tell what if  i want to sent a pic as an


                        Intent sendIntent = new Intent(Intent.ACTION_SEND);
                        sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Test Mail");
                        sendIntent.putExtra(Intent.EXTRA_TEXT,"This is a Test 


2. apk manual install problem Failure [-12]

I have developed a small application on eclipse (SDK 1.5r1). When I
run the project it worked fine. Then I exported the signed
application. (Lunar.apk)
Then I sent the Lunar.apk file to my friend to install on his machine.
when he try to install it manually on the emulator
the cmd prompt says

pkg: /data/local/tmp/Lunar.apk
Failure [-12]

Please help me with this.

Thanks in advance

3. How can I get the logging ID gmail

4. what is tag/branch for SK 1.5_r1

5. "automatic location finder"

6. How to debug android source code using eclipse?

7. Installing the USB driver for HTC Magic on Vista