ObjectDeletion Sample
The ObjectDeletion
sample demonstrates the object deletion
mechanism, applet deletion and package deletion:
- “Stage preparation”: Demonstrates the object deletion mechanism and verifies that
memory for objects referenced from transient memory of type
CLEAR_ON_DESELECT
is reclaimed after an applet is deselected. - “Stage exec_1_1”: Demonstrates the object deletion mechanism and verifies that
memory for objects referenced from transient memory of type
CLEAR_ON_RESET
is reclaimed after card reset. - “Stage exec_1_2”: Performs applet deletion, package deletion and
employs the
AppletEvent.uninstall()
method to uninstall an applet. The sample verifies that all transient memory of typeCLEAR_ON_RESET
andCLEAR_ON_DESELECT
is returned to the memory manager. The sample also demonstrates the use of theAppletEvent.uninstall()
method.
Follow one of these sets of instructions to run this sample: