ApplicationStartInfo Class

Definition

Describes information related to an application process's startup.

[Android.Runtime.Register("android/app/ApplicationStartInfo", ApiSince=35, DoNotGenerateAcw=true)]
public sealed class ApplicationStartInfo : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/app/ApplicationStartInfo", ApiSince=35, DoNotGenerateAcw=true)>]
type ApplicationStartInfo = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
ApplicationStartInfo
Attributes
Implements

Remarks

Describes information related to an application process's startup.

Many aspects concerning why and how an applications process was started are valuable for apps both for logging and for potential behavior changes. Reason for process start, start type, start times, throttling, and other useful diagnostic data can be obtained from ApplicationStartInfo records.

Java documentation for android.app.ApplicationStartInfo.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fields

LaunchModeSingleInstance
Obsolete.

The system creates the activity at the root of a new task or locates the activity on an existing task with the same affinity.

LaunchModeSingleInstancePerTask
Obsolete.

The activity can only be running as the root activity of the task, the first activity that created the task, and therefore there will only be one instance of this activity in a task; but activity can be instantiated multiple times in different tasks.

LaunchModeSingleTask
Obsolete.

Same as "singleTask", except that the system doesn't launch any other activities into the task holding the instance.

LaunchModeSingleTop
Obsolete.

If an instance of the activity already exists at the top of the target task, the system routes the intent to that instance through a call to its onNewIntent() method, rather than creating a new instance of the activity.

LaunchModeStandard
Obsolete.

Default.

StartReasonAlarm
Obsolete.

Process started due to alarm.

StartReasonBackup
Obsolete.

Process started to run backup.

StartReasonBootComplete
Obsolete.

Process started due to boot complete.

StartReasonBroadcast
Obsolete.

Process started due to broadcast received.

StartReasonContentProvider
Obsolete.

Process started due to access of ContentProvider

StartReasonJob
Obsolete.

Process started to run scheduled job.

StartReasonLauncher
Obsolete.

Process started due to click app icon or widget from launcher.

StartReasonLauncherRecents
Obsolete.

Process started from launcher recents.

StartReasonOther
Obsolete.

Process started not for any of the listed reasons.

StartReasonPush
Obsolete.

Process started due to push message.

StartReasonService
Obsolete.

Process service started.

StartReasonStartActivity
Obsolete.

Process started due to Activity started for any reason not explicitly listed.

StartTimestampApplicationOncreate
Obsolete.

Clock monotonic timestamp of Application onCreate called.

StartTimestampBindApplication
Obsolete.

Clock monotonic timestamp of bindApplication called.

StartTimestampFirstFrame
Obsolete.

Clock monotonic timestamp of first frame drawn.

StartTimestampFork
Obsolete.

Clock monotonic timestamp of process fork.

StartTimestampFullyDrawn
Obsolete.

Clock monotonic timestamp of reportFullyDrawn called by application.

StartTimestampInitialRenderthreadFrame
Obsolete.

Clock monotonic timestamp of initial renderthread frame.

StartTimestampLaunch
Obsolete.

Clock monotonic timestamp of launch started.

StartTimestampReservedRangeDeveloper

The end of the range reserved for developer supplied timestamps.

StartTimestampReservedRangeDeveloperStart

The beginning of the range reserved for developer supplied timestamps.

StartTimestampReservedRangeSystem

The end of the range, beginning with 0, reserved for system timestamps.

StartTimestampSurfaceflingerCompositionComplete
Obsolete.

Clock monotonic timestamp of surfaceflinger composition complete.

StartTypeCold
Obsolete.

Process started from scratch.

StartTypeHot
Obsolete.

Process brought back to foreground.

StartTypeUnset
Obsolete.

Start type not yet set.

StartTypeWarm
Obsolete.

Process retained minimally SavedInstanceState.

StartupStateError
Obsolete.

State indicating process startup has failed.

StartupStateFirstFrameDrawn
Obsolete.

State indicating process startup has made it to first frame draw.

StartupStateStarted
Obsolete.

State indicating process startup has started.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Creator
DefiningUid

Return the defining kernel user identifier, maybe different from #getRealUid and #getPackageUid, if an external service has the android.R.styleable#AndroidManifestService_useAppZygote android:useAppZygote set to true and was bound with the flag android.content.Context#BIND_EXTERNAL_SERVICE - in this case, this field here will be the kernel user identifier of the external service provider.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
Intent
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
LaunchMode

An instruction on how the activity should be launched.

PackageUid

Similar to #getRealUid, it's the kernel user identifier that is assigned at the package installation time.

PeerReference (Inherited from Object)
Pid

The process id.

ProcessName
RealUid

The kernel user identifier of the process, most of the time the system uses this to do access control checks.

Reason

The reason code of what triggered the process's start.

StartType

The state of the app at startup.

StartupState

Current state of startup.

StartupTimestamps
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
DescribeContents()
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WasForceStopped()

Informs whether this is the first process launch for an app since it was ApplicationInfo#FLAG_STOPPED force-stopped for some reason.

WriteToParcel(Parcel, ParcelableWriteFlags)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to