IT. Expert System.

Android Reference

ActivityInfo


android.content.pm

Class ActivityInfo

  • All Implemented Interfaces:
    Parcelable


    public class ActivityInfo
    extends ComponentInfo
    implements Parcelable
    Information you can retrieve about a particular application activity or receiver. This corresponds to information collected from the AndroidManifest.xml's <activity> and <receiver> tags.
    • Field Detail

      • theme

        public int theme
        A style resource identifier (in the package's resources) of this activity's theme. From the "theme" attribute or, if not set, 0.
      • LAUNCH_MULTIPLE

        public static final int LAUNCH_MULTIPLE
        Constant corresponding to standard in the android.R.attr#launchMode attribute.
        See Also:
        Constant Field Values
      • LAUNCH_SINGLE_TOP

        public static final int LAUNCH_SINGLE_TOP
        Constant corresponding to singleTop in the android.R.attr#launchMode attribute.
        See Also:
        Constant Field Values
      • LAUNCH_SINGLE_TASK

        public static final int LAUNCH_SINGLE_TASK
        Constant corresponding to singleTask in the android.R.attr#launchMode attribute.
        See Also:
        Constant Field Values
      • LAUNCH_SINGLE_INSTANCE

        public static final int LAUNCH_SINGLE_INSTANCE
        Constant corresponding to singleInstance in the android.R.attr#launchMode attribute.
        See Also:
        Constant Field Values
      • permission

        public String permission
        Optional name of a permission required to be able to access this Activity. From the "permission" attribute.
      • taskAffinity

        public String taskAffinity
        The affinity this activity has for another task in the system. The string here is the name of the task, often the package name of the overall package. If null, the activity has no affinity. Set from the android.R.attr#taskAffinity attribute.
      • targetActivity

        public String targetActivity
        If this is an activity alias, this is the real activity class to run for it. Otherwise, this is null.
      • FLAG_MULTIPROCESS

        public static final int FLAG_MULTIPROCESS
        Bit in flags indicating whether this activity is able to run in multiple processes. If true, the system may instantiate it in the some process as the process starting it in order to conserve resources. If false, the default, it always runs in ComponentInfo.processName. Set from the android.R.attr#multiprocess attribute.
        See Also:
        Constant Field Values
      • FLAG_FINISH_ON_TASK_LAUNCH

        public static final int FLAG_FINISH_ON_TASK_LAUNCH
        Bit in flags indicating that, when the activity's task is relaunched from home, this activity should be finished. Set from the android.R.attr#finishOnTaskLaunch attribute.
        See Also:
        Constant Field Values
      • FLAG_CLEAR_TASK_ON_LAUNCH

        public static final int FLAG_CLEAR_TASK_ON_LAUNCH
        Bit in flags indicating that, when the activity is the root of a task, that task's stack should be cleared each time the user re-launches it from home. As a result, the user will always return to the original activity at the top of the task. This flag only applies to activities that are used to start the root of a new task. Set from the android.R.attr#clearTaskOnLaunch attribute.
        See Also:
        Constant Field Values
      • FLAG_ALWAYS_RETAIN_TASK_STATE

        public static final int FLAG_ALWAYS_RETAIN_TASK_STATE
        Bit in flags indicating that, when the activity is the root of a task, that task's stack should never be cleared when it is relaunched from home. Set from the android.R.attr#alwaysRetainTaskState attribute.
        See Also:
        Constant Field Values
      • FLAG_STATE_NOT_NEEDED

        public static final int FLAG_STATE_NOT_NEEDED
        Bit in flags indicating that the activity's state is not required to be saved, so that if there is a failure the activity will not be removed from the activity stack. Set from the android.R.attr#stateNotNeeded attribute.
        See Also:
        Constant Field Values
      • FLAG_EXCLUDE_FROM_RECENTS

        public static final int FLAG_EXCLUDE_FROM_RECENTS
        Bit in flags that indicates that the activity should not appear in the list of recently launched activities. Set from the android.R.attr#excludeFromRecents attribute.
        See Also:
        Constant Field Values
      • FLAG_ALLOW_TASK_REPARENTING

        public static final int FLAG_ALLOW_TASK_REPARENTING
        Bit in flags that indicates that the activity can be moved between tasks based on its task affinity. Set from the android.R.attr#allowTaskReparenting attribute.
        See Also:
        Constant Field Values
      • FLAG_NO_HISTORY

        public static final int FLAG_NO_HISTORY
        Bit in flags indicating that, when the user navigates away from an activity, it should be finished. Set from the android.R.attr#noHistory attribute.
        See Also:
        Constant Field Values
      • FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS

        public static final int FLAG_FINISH_ON_CLOSE_SYSTEM_DIALOGS
        Bit in flags indicating that, when a request to close system windows happens, this activity is finished. Set from the android.R.attr#finishOnCloseSystemDialogs attribute.
        See Also:
        Constant Field Values
      • FLAG_HARDWARE_ACCELERATED

        public static final int FLAG_HARDWARE_ACCELERATED
        Value for flags: true when the application's rendering should be hardware accelerated.
        See Also:
        Constant Field Values
      • FLAG_SHOW_ON_LOCK_SCREEN

        public static final int FLAG_SHOW_ON_LOCK_SCREEN
        Value for flags: true when the application can be displayed over the lockscreen and consequently over all users' windows.
        See Also:
        Constant Field Values
      • FLAG_SINGLE_USER

        public static final int FLAG_SINGLE_USER
        Bit in flags: If set, a single instance of the receiver will run for all users on the device. Set from the android.R.attr#singleUser attribute. Note that this flag is only relevant for ActivityInfo structures that are describing receiver components; it is not applied to activities.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_UNSPECIFIED

        public static final int SCREEN_ORIENTATION_UNSPECIFIED
        Constant corresponding to unspecified in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_LANDSCAPE

        public static final int SCREEN_ORIENTATION_LANDSCAPE
        Constant corresponding to landscape in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_PORTRAIT

        public static final int SCREEN_ORIENTATION_PORTRAIT
        Constant corresponding to portrait in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_USER

        public static final int SCREEN_ORIENTATION_USER
        Constant corresponding to user in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_BEHIND

        public static final int SCREEN_ORIENTATION_BEHIND
        Constant corresponding to behind in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_SENSOR

        public static final int SCREEN_ORIENTATION_SENSOR
        Constant corresponding to sensor in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_NOSENSOR

        public static final int SCREEN_ORIENTATION_NOSENSOR
        Constant corresponding to nosensor in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_SENSOR_LANDSCAPE

        public static final int SCREEN_ORIENTATION_SENSOR_LANDSCAPE
        Constant corresponding to sensorLandscape in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_SENSOR_PORTRAIT

        public static final int SCREEN_ORIENTATION_SENSOR_PORTRAIT
        Constant corresponding to sensorPortrait in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_REVERSE_LANDSCAPE

        public static final int SCREEN_ORIENTATION_REVERSE_LANDSCAPE
        Constant corresponding to reverseLandscape in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_REVERSE_PORTRAIT

        public static final int SCREEN_ORIENTATION_REVERSE_PORTRAIT
        Constant corresponding to reversePortrait in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • SCREEN_ORIENTATION_FULL_SENSOR

        public static final int SCREEN_ORIENTATION_FULL_SENSOR
        Constant corresponding to fullSensor in the android.R.attr#screenOrientation attribute.
        See Also:
        Constant Field Values
      • CONFIG_MCC

        public static final int CONFIG_MCC
        Bit in configChanges that indicates that the activity can itself handle changes to the IMSI MCC. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_MNC

        public static final int CONFIG_MNC
        Bit in configChanges that indicates that the activity can itself handle changes to the IMSI MNC. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_LOCALE

        public static final int CONFIG_LOCALE
        Bit in configChanges that indicates that the activity can itself handle changes to the locale. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_TOUCHSCREEN

        public static final int CONFIG_TOUCHSCREEN
        Bit in configChanges that indicates that the activity can itself handle changes to the touchscreen type. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_KEYBOARD

        public static final int CONFIG_KEYBOARD
        Bit in configChanges that indicates that the activity can itself handle changes to the keyboard type. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_KEYBOARD_HIDDEN

        public static final int CONFIG_KEYBOARD_HIDDEN
        Bit in configChanges that indicates that the activity can itself handle changes to the keyboard or navigation being hidden/exposed. Note that inspite of the name, this applies to the changes to any hidden states: keyboard or navigation. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_NAVIGATION

        public static final int CONFIG_NAVIGATION
        Bit in configChanges that indicates that the activity can itself handle changes to the navigation type. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_ORIENTATION

        public static final int CONFIG_ORIENTATION
        Bit in configChanges that indicates that the activity can itself handle changes to the screen orientation. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_SCREEN_LAYOUT

        public static final int CONFIG_SCREEN_LAYOUT
        Bit in configChanges that indicates that the activity can itself handle changes to the screen layout. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_UI_MODE

        public static final int CONFIG_UI_MODE
        Bit in configChanges that indicates that the activity can itself handle the ui mode. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_SCREEN_SIZE

        public static final int CONFIG_SCREEN_SIZE
        Bit in configChanges that indicates that the activity can itself handle the screen size. Set from the android.R.attr#configChanges attribute. This will be set by default for applications that target an earlier version than Build.VERSION_CODES.HONEYCOMB_MR2... however, you will not see the bit set here becomes some applications incorrectly compare configChanges against an absolute value rather than correctly masking out the bits they are interested in. Please don't do that, thanks.
        See Also:
        Constant Field Values
      • CONFIG_SMALLEST_SCREEN_SIZE

        public static final int CONFIG_SMALLEST_SCREEN_SIZE
        Bit in configChanges that indicates that the activity can itself handle the smallest screen size. Set from the android.R.attr#configChanges attribute. This will be set by default for applications that target an earlier version than Build.VERSION_CODES.HONEYCOMB_MR2... however, you will not see the bit set here becomes some applications incorrectly compare configChanges against an absolute value rather than correctly masking out the bits they are interested in. Please don't do that, thanks.
        See Also:
        Constant Field Values
      • CONFIG_DENSITY

        public static final int CONFIG_DENSITY
        Bit in configChanges that indicates that the activity can itself handle density changes. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_LAYOUT_DIRECTION

        public static final int CONFIG_LAYOUT_DIRECTION
        Bit in configChanges that indicates that the activity can itself handle the change to layout direction. Set from the android.R.attr#configChanges attribute.
        See Also:
        Constant Field Values
      • CONFIG_FONT_SCALE

        public static final int CONFIG_FONT_SCALE
        Bit in configChanges that indicates that the activity can itself handle changes to the font scaling factor. Set from the android.R.attr#configChanges attribute. This is not a core resource configutation, but a higher-level value, so its constant starts at the high bits.
        See Also:
        Constant Field Values
      • CONFIG_NATIVE_BITS

        public static int[] CONFIG_NATIVE_BITS
      • softInputMode

        public int softInputMode
        The desired soft input mode for this activity's main window. Set from the android.R.attr#windowSoftInputMode attribute in the activity's manifest. May be any of the same values allowed for WindowManager.LayoutParams.softInputMode. If 0 (unspecified), the mode from the theme will be used.
      • uiOptions

        public int uiOptions
        The desired extra UI options for this activity and its main window. Set from the android.R.attr#uiOptions attribute in the activity's manifest.
      • UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW

        public static final int UIOPTION_SPLIT_ACTION_BAR_WHEN_NARROW
        Flag for use with uiOptions. Indicates that the action bar should put all action items in a separate bar when the screen is narrow.

        This value corresponds to "splitActionBarWhenNarrow" for the uiOptions XML attribute.

        See Also:
        Constant Field Values
      • parentActivityName

        public String parentActivityName
        If defined, the activity named here is the logical parent of this activity.
    • Constructor Detail

      • ActivityInfo

        public ActivityInfo()
    • Method Detail

      • activityInfoConfigToNative

        public static int activityInfoConfigToNative(int input)
      • getRealConfigChanged

        public int getRealConfigChanged()
      • getThemeResource

        public final int getThemeResource()
        Return the theme resource identifier to use for this activity. If the activity defines a theme, that is used; else, the application theme is used.
        Returns:
        The theme associated with this activity.
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1517 / . Delta: 0.03635 с