JAM for PDAP

Because PDAP is a superset of MIDP, a MIDP JAR file is also a valid PDAP JAR file. However, PDAP provides one extension of the JAR file format. PDA applications using PDA capabilities beyond MIDP must use PDAlet-<Number> entries. The syntax of the PDAlet-<Number> entries is identical to the MIDlet-<Number> entries. A PDAlet entry with the same number as a MIDlet entry overrides the corresponding MIDlet entry. Thus, different versions of the same applications for both profiles can be included in the same JAD and JAR files. If the device supports PDAP, the PDA applications will be loaded; otherwise the application manager automatically falls back to the MIDlet entry because PDAlet entries have no meaning for the MIDP application manager. The HelloPdap example (Listing 1.5) in the first chapter shows a corresponding dual-profile JAD file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset