Jump to content
  • Advertisement
Sign in to follow this  
Moose6912

Jad and Jar

This topic is 5226 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!