Class of snx.android · Main.java
public final class Main
Where the runtime starts the app: the manifest read, the app's classes loaded and its components started.
public static String processName() sourceThe app's process name: its package's.
public static java.io.File dataRoot() sourceThe app's folder on the host, where its data, cache and storage folders are: snx.android.data, which the runtime sets, or android/data/PACKAGE in ScarletNX's data folder.
public static String className(String pkg, String name) sourceA component's class name: one the manifest gives as ".Name" or "Name" is in the app's package.
public static void exit(int code) sourceThe process's end, as the last activity's finish brings it: the main loop stops after the message it runs, and main returns status. The main looper itself never quits, as on Android, where its queue refuses to
public static void loop() sourceThe main thread's loop: the main looper's messages one at a time, until exit.
public static int status() sourceThe exit status that main left, for the host.
public static void main(String[] args) throws Throwable sourceThe boot, in the order of Android's ActivityThread.handleBindApplication and its launch of the first activity: the main looper, the resources and the manifest, the component factory and the Application, the content providers before Application.onCreate, then the launcher activity, and the main loop.
Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.