There are many more things that we can do with the System
class. We will explore a few of these one by one:
We can completely exit the application using:
System.exit
Generally, if we close the application it runs in the background. However, if we use this command, it will exit the application completely from the device.
We can enable and disable phone sleep by:
This will enable/disable phone sleep and return it to the previous state.
We can do the following operations on another application installed on your device:
Run a specified application:
System.run_app(appname, params)
where
appname
is platform dependent.Install the application from a specified
url
:System.app_install(url)
Is the specified application installed on a device?
System.app_installed?(appname)
Uninstall the specified application:
System.app_uninstall(appname)
These are the various options available in the System...