isMainProcess

public static boolean isMainProcess(Context context)

Indicates whether the current process is the main process.

Return

Indicates whether the current process is the main process. Returns `true` if it is the main process; otherwise, returns `false`.

Parameters

context

The context.