Sign in to follow this  

Jad and Jar

This topic is 4858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was wondering why is it that the standard is having 1 JAD file and 1 JAR file?Won't it be better to combine both (like a picture file where there is a header file for information and another section for the data itself) since JAD stored the descriptor and Jar stores the files itself.At least it won't lead to confusion between JAD and JAR.

Share this post


Link to post
Share on other sites
No.

If you work with JAR/JAD for a bit longer you will find out that in some cases the JAD is never even sent or read by the phone. Providing all the extra JAD information combined with the JAR data is only adding more overhead, something that you really must avoid in any situation, let alone small devices like mobile phones.

Share this post


Link to post
Share on other sites
The purpose of having them separate is so that the phone can download the .jad BEFORE the user chooses to download the game. They can then determine whether:

- The phone even supports the game (well, in some cases anyway)
- The user WANTS to download it (Game name, author etc)
- There is enough space for the game
- The game is not already on the phone
- etc

The .jad is a small file. Phones don't generally have a large amount of storage, and bandwidth is typically paid for on a per-byte basis.

So it makes good sense to have a small metadata file to download before you download the game, rather than download the entire file only to discover that it's incompatible, doesn't fit, already exists, or the user doesn't in fact want it.

Mark

Share this post


Link to post
Share on other sites

This topic is 4858 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this