Java android.content.pm ApplicationInfo fields, constructors, methods, implement or subclass

Example usage for Java android.content.pm ApplicationInfo fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.content.pm ApplicationInfo.

The text is from its open source code.

Field

intFLAG_SYSTEM
Value for #flags : if set, this application is installed in the device's system image.
intFLAG_DEBUGGABLE
Value for #flags : set to true if this application would like to allow debugging of its code, even when installed on a non-development system.
intFLAG_HAS_CODE
Value for #flags : set to true if this application has code associated with it.
intFLAG_PERSISTENT
Value for #flags : set to true if this application is persistent.
intFLAG_ALLOW_TASK_REPARENTING
Value for #flags : default value for the corresponding ActivityInfo flag.
intFLAG_ALLOW_CLEAR_USER_DATA
Value for #flags : default value for the corresponding ActivityInfo flag.
intFLAG_UPDATED_SYSTEM_APP
Value for #flags : this is set if this application has been installed as an update to a built-in system application.
intFLAG_TEST_ONLY
Value for #flags : this is set if the application has specified android.R.styleable#AndroidManifestApplication_testOnly android:testOnly to be true.
intFLAG_SUPPORTS_SMALL_SCREENS
Value for #flags : true when the application's window can be reduced in size for smaller screens.
intFLAG_SUPPORTS_NORMAL_SCREENS
Value for #flags : true when the application's window can be displayed on normal screens.
intFLAG_SUPPORTS_LARGE_SCREENS
Value for #flags : true when the application's window can be increased in size for larger screens.
intFLAG_RESIZEABLE_FOR_SCREENS
Value for #flags : true when the application knows how to adjust its UI for different screen sizes.
intFLAG_SUPPORTS_SCREEN_DENSITIES
Value for #flags : true when the application knows how to accommodate different screen densities.
intFLAG_VM_SAFE_MODE
Value for #flags : set to true if this application would like to request the VM to operate under the safe mode.
intFLAG_ALLOW_BACKUP
Value for #flags : set to false if the application does not wish to permit any OS-driven backups of its data; true otherwise.
intFLAG_KILL_AFTER_RESTORE
Value for #flags : set to false if the application must be kept in memory following a full-system restore operation; true otherwise.
intFLAG_RESTORE_ANY_VERSION
Value for #flags : Set to true if the application's backup agent claims to be able to handle restore data even "from the future," i.e.
intFLAG_EXTERNAL_STORAGE
Value for #flags : Set to true if the application is currently installed on external/removable/unprotected storage.
intFLAG_SUPPORTS_XLARGE_SCREENS
Value for #flags : true when the application's window can be increased in size for extra large screens.
intFLAG_LARGE_HEAP
Value for #flags : true when the application has requested a large heap for its processes.
intFLAG_STOPPED
Value for #flags : true if this application's package is in the stopped state.
intFLAG_SUPPORTS_RTL
Value for #flags : true when the application is willing to support RTL (right to left).
intFLAG_INSTALLED
Value for #flags : true if the application is currently installed for the calling user.
intFLAG_IS_GAME
Value for #flags : true if the application was declared to be a game, or false if it is a non-game application.
intFLAG_FULL_BACKUP_ONLY
Value for #flags : true if the application asks that only full-data streaming backups of its data be performed even though it defines a android.app.backup.BackupAgent BackupAgent , which normally indicates that the app will manage its backed-up data via incremental key/value updates.
intFLAG_USES_CLEARTEXT_TRAFFIC
Value for #flags : true if the application may use cleartext network traffic (e.g., HTTP rather than HTTPS; WebSockets rather than WebSockets Secure; XMPP, IMAP, STMP without STARTTLS or TLS).
intFLAG_EXTRACT_NATIVE_LIBS
When set installer extracts native libs from .apk files.
intFLAG_HARDWARE_ACCELERATED
Value for #flags : true when the application's rendering should be hardware accelerated.
intFLAG_MULTIARCH
Value for #flags : true if code from this application will need to be loaded into other applications' processes.
intPRIVATE_FLAG_HIDDEN
Value for #privateFlags : true if the application is hidden via restrictions and for most purposes is considered as not installed.
intPRIVATE_FLAG_CANT_SAVE_STATE
Value for #privateFlags : set to true if the application has reported that it is heavy-weight, and thus can not participate in the normal application lifecycle.
intPRIVATE_FLAG_FORWARD_LOCK
Value for #privateFlags : Set to true if the application has been installed using the forward lock option.
intPRIVATE_FLAG_PRIVILEGED
Value for #privateFlags : set to true if the application is permitted to hold privileged permissions.
intPRIVATE_FLAG_HAS_DOMAIN_URLS
Value for #privateFlags : true if the application has any IntentFiler with some data URI using HTTP or HTTPS with an associated VIEW action.

Constructor

Method

voiddisableCompatibilityMode()
Disable compatibility mode
CharSequenceloadDescription(PackageManager pm)
Retrieve the textual description of the application.
DrawableloadIcon(PackageManager pm)
Retrieve the current graphical icon associated with this item.
CharSequenceloadLabel(@NonNull PackageManager pm)
Retrieve the current textual label associated with this item.
DrawableloadLogo(PackageManager pm)
Retrieve the current graphical logo associated with this item.