How to erase self and exit
Is there a java utility that can be used by an application to erase itself (the app.jar file) and exit? I currently use the executable jar to test this feature on a windows platform. There is no fancy installation mechanism (and there may never be one) other than providing the jar file(s). The following does not deletes myapp.jar.
In the Android environment all that is needed is:
File MYAPP = new File(".\\myapp.jar");
I hope the desktop environment has something similar.
Uri packageURI = Uri.parse("package:com.co.app");
Intent uninstallIntent = new Intent(Intent.ACTION_DELETE, packageURI);