J2ME: manifest.mf vs. JAD files

J

John Goche

Hello,

I would like to know the following
concerning J2ME development practices:

What is the point of having both a manifest.mf in the .jar file itself
and a separate JAD file containing more or less the same information?
Wouldn't just one of these suffice?

Thanks,

JG
 
J

js

John said:
Hello,

I would like to know the following
concerning J2ME development practices:

What is the point of having both a manifest.mf in the .jar file itself
and a separate JAD file containing more or less the same information?
Wouldn't just one of these suffice?

Thanks,

JG

When you deploy both a JAD and JAR, normally, you would send a WAP Push
service indication message to the phone where the URL points to the JAD
file.

When you open the WAP push message and click on the URL, phone recognizes
that the file being downloaded is a JAD file, and the J2ME on the phone
then displays the information specified on the JAD file to the user prior
to downloading the JAR, which is also on the JAD file. If you respond with
yes, then the phone downloads the JAR file and installs the app on your
phone.

Of course, you can tell the phone to download the JAR directly and byass the
JAD, but the purpose of the JAD is really as a confirmation to the user
that they want to install the said application from the said vendor, whose
size is x Kb, etc..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top