Example usage for Java android.content.pm PackageManager fields, constructors, methods, implement or subclass
The text is from its open source code.
int | GET_ACTIVITIES PackageInfo flag: return information about activities in the package in PackageInfo#activities . |
int | GET_RECEIVERS PackageInfo flag: return information about intent receivers in the package in PackageInfo#receivers . |
int | GET_SERVICES PackageInfo flag: return information about services in the package in PackageInfo#services . |
int | GET_PROVIDERS PackageInfo flag: return information about content providers in the package in PackageInfo#providers . |
int | GET_INSTRUMENTATION PackageInfo flag: return information about instrumentation in the package in PackageInfo#instrumentation . |
int | GET_INTENT_FILTERS PackageInfo flag: return information about the intent filters supported by the activity. |
int | GET_SIGNATURES PackageInfo flag: return information about the signatures included in the package. |
int | GET_RESOLVED_FILTER ResolveInfo flag: return the IntentFilter that was matched for a particular ResolveInfo in ResolveInfo#filter . |
int | GET_META_DATA ComponentInfo flag: return the ComponentInfo#metaData data android.os.Bundle s that are associated with a component. |
int | GET_GIDS PackageInfo flag: return the PackageInfo#gids group ids that are associated with an application. |
int | GET_DISABLED_COMPONENTS |
int | MATCH_DISABLED_COMPONENTS PackageInfo flag: include disabled components in the returned info. |
int | GET_SHARED_LIBRARY_FILES ApplicationInfo flag: return the ApplicationInfo#sharedLibraryFiles paths to the shared libraries that are associated with an application. |
int | GET_URI_PERMISSION_PATTERNS ProviderInfo flag: return the ProviderInfo#uriPermissionPatterns URI permission patterns that are associated with a content provider. |
int | GET_PERMISSIONS PackageInfo flag: return information about permissions in the package in PackageInfo#permissions . |
int | GET_UNINSTALLED_PACKAGES |
int | MATCH_UNINSTALLED_PACKAGES Flag parameter to retrieve some information about all applications (even uninstalled ones) which have data directories. |
int | GET_CONFIGURATIONS PackageInfo flag: return information about hardware preferences in PackageInfo#configPreferences PackageInfo.configPreferences , and requested features in PackageInfo#reqFeatures and PackageInfo#featureGroups . |
int | GET_DISABLED_UNTIL_USED_COMPONENTS |
int | MATCH_DEFAULT_ONLY Resolution and querying flag: if set, only filters that support the android.content.Intent#CATEGORY_DEFAULT will be considered for matching. |
int | MATCH_ALL Querying flag: if set and if the platform is doing any filtering of the results, then the filtering will not happen. |
int | PERMISSION_GRANTED Permission check result: this is returned by #checkPermission if the permission has been granted to the given package. |
int | PERMISSION_DENIED Permission check result: this is returned by #checkPermission if the permission has not been granted to the given package. |
int | SIGNATURE_MATCH Signature check result: this is returned by #checkSignatures if all signatures on the two packages match. |
int | SIGNATURE_NEITHER_SIGNED Signature check result: this is returned by #checkSignatures if neither of the two packages is signed. |
int | SIGNATURE_UNKNOWN_PACKAGE Signature check result: this is returned by #checkSignatures if either of the packages are not valid. |
int | COMPONENT_ENABLED_STATE_DEFAULT Flag for #setApplicationEnabledSetting(String,int,int) and #setComponentEnabledSetting(ComponentName,int,int) : This component or application is in its default enabled state (as specified in its manifest). |
int | COMPONENT_ENABLED_STATE_ENABLED Flag for #setApplicationEnabledSetting(String,int,int) and #setComponentEnabledSetting(ComponentName,int,int) : This component or application has been explictily enabled, regardless of what it has specified in its manifest. |
int | COMPONENT_ENABLED_STATE_DISABLED Flag for #setApplicationEnabledSetting(String,int,int) and #setComponentEnabledSetting(ComponentName,int,int) : This component or application has been explicitly disabled, regardless of what it has specified in its manifest. |
int | COMPONENT_ENABLED_STATE_DISABLED_USER Flag for #setApplicationEnabledSetting(String,int,int) only: The user has explicitly disabled the application, regardless of what it has specified in its manifest. |
int | COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED Flag for #setApplicationEnabledSetting(String,int,int) only: This application should be considered, until the point where the user actually wants to use it. |
int | DONT_KILL_APP Flag parameter for #setComponentEnabledSetting(android.content.ComponentName,int,int) to indicate that you don't want to kill the app containing the component. |
int | INSTALL_SUCCEEDED Installation return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS on success. |
int | INSTALL_FAILED_INVALID_APK Installation return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the package archive file is invalid. |
int | INSTALL_FAILED_INVALID_URI Installation return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the URI passed in is invalid. |
int | INSTALL_FAILED_OLDER_SDK Installation return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the new package failed because the current SDK version is older than that required by the package. |
int | INSTALL_PARSE_FAILED_BAD_PACKAGE_NAME Installation parse return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the parser encountered a bad or missing package name in the manifest. |
int | INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID Installation parse return code: tthis is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the parser encountered a bad shared user id name in the manifest. |
int | INSTALL_PARSE_FAILED_MANIFEST_MALFORMED Installation parse return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the parser encountered some structural problem in the manifest. |
int | INSTALL_PARSE_FAILED_MANIFEST_EMPTY Installation parse return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the parser did not find any actionable tags (instrumentation or application) in the manifest. |
int | INSTALL_FAILED_USER_RESTRICTED Installation failed return code: this is passed in the PackageInstaller#EXTRA_LEGACY_STATUS if the system failed to install the package because the user is restricted from installing apps. |
String | FEATURE_AUDIO_LOW_LATENCY Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's audio pipeline is low-latency, more suitable for audio applications sensitive to delays or lag in sound input or output. |
String | FEATURE_AUDIO_OUTPUT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes at least one form of audio output, as defined in the Android Compatibility Definition Document (CDD) section 7.8 Audio. |
String | FEATURE_AUDIO_PRO Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has professional audio level of functionality and performance. |
String | FEATURE_BLUETOOTH Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device is capable of communicating with other devices via Bluetooth. |
String | FEATURE_BLUETOOTH_LE Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device is capable of communicating with other devices via Bluetooth Low Energy radio. |
String | FEATURE_CAMERA Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a camera facing away from the screen. |
String | FEATURE_CAMERA_AUTOFOCUS Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's camera supports auto-focus. |
String | FEATURE_CAMERA_ANY Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has at least one camera pointing in some direction, or can support an external camera being connected to it. |
String | FEATURE_CAMERA_EXTERNAL Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can support having an external camera connected to it. |
String | FEATURE_CAMERA_FLASH Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's camera supports flash. |
String | FEATURE_CAMERA_FRONT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a front facing camera. |
String | FEATURE_CAMERA_LEVEL_FULL Feature for #getSystemAvailableFeatures and #hasSystemFeature : At least one of the cameras on the device supports the android.hardware.camera2.CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL full hardware capability level. |
String | FEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR Feature for #getSystemAvailableFeatures and #hasSystemFeature : At least one of the cameras on the device supports the android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR manual sensor capability level. |
String | FEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING Feature for #getSystemAvailableFeatures and #hasSystemFeature : At least one of the cameras on the device supports the android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING manual post-processing capability level. |
String | FEATURE_CAMERA_CAPABILITY_RAW Feature for #getSystemAvailableFeatures and #hasSystemFeature : At least one of the cameras on the device supports the android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_RAW RAW capability level. |
String | FEATURE_CONSUMER_IR Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device is capable of communicating with consumer IR devices. |
String | FEATURE_LOCATION Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports one or more methods of reporting current location. |
String | FEATURE_LOCATION_GPS Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a Global Positioning System receiver and can report precise location. |
String | FEATURE_LOCATION_NETWORK Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can report location with coarse accuracy using a network-based geolocation system. |
String | FEATURE_MICROPHONE Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can record audio via a microphone. |
String | FEATURE_NFC Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can communicate using Near-Field Communications (NFC). |
String | FEATURE_NFC_HOST_CARD_EMULATION Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports host- based NFC card emulation. |
String | FEATURE_OPENGLES_EXTENSION_PACK Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports the OpenGL ES Android Extension Pack. |
String | FEATURE_SENSOR_ACCELEROMETER Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes an accelerometer. |
String | FEATURE_SENSOR_BAROMETER Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a barometer (air pressure sensor.) |
String | FEATURE_SENSOR_COMPASS Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a magnetometer (compass). |
String | FEATURE_SENSOR_GYROSCOPE Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a gyroscope. |
String | FEATURE_SENSOR_LIGHT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a light sensor. |
String | FEATURE_SENSOR_PROXIMITY Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a proximity sensor. |
String | FEATURE_SENSOR_STEP_COUNTER Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a hardware step counter. |
String | FEATURE_SENSOR_STEP_DETECTOR Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a hardware step detector. |
String | FEATURE_SENSOR_HEART_RATE Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a heart rate monitor. |
String | FEATURE_SENSOR_HEART_RATE_ECG Feature for #getSystemAvailableFeatures and #hasSystemFeature : The heart rate sensor on this device is an Electrocardiogram. |
String | FEATURE_SENSOR_RELATIVE_HUMIDITY Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes a relative humidity sensor. |
String | FEATURE_SENSOR_AMBIENT_TEMPERATURE Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device includes an ambient temperature sensor. |
String | FEATURE_HIFI_SENSORS Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports high fidelity sensor processing capabilities. |
String | FEATURE_TELEPHONY Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a telephony radio with data communication support. |
String | FEATURE_TELEPHONY_CDMA Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a CDMA telephony stack. |
String | FEATURE_TELEPHONY_GSM Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a GSM telephony stack. |
String | FEATURE_USB_HOST Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports connecting to USB devices as the USB host. |
String | FEATURE_USB_ACCESSORY Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports connecting to USB accessories. |
String | FEATURE_SIP Feature for #getSystemAvailableFeatures and #hasSystemFeature : The SIP API is enabled on the device. |
String | FEATURE_SIP_VOIP Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports SIP-based VOIP. |
String | FEATURE_CONNECTION_SERVICE Feature for #getSystemAvailableFeatures and #hasSystemFeature : The Connection Service API is enabled on the device. |
String | FEATURE_TOUCHSCREEN Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's display has a touch screen. |
String | FEATURE_TOUCHSCREEN_MULTITOUCH Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's touch screen supports multitouch sufficient for basic two-finger gesture detection. |
String | FEATURE_TOUCHSCREEN_MULTITOUCH_DISTINCT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's touch screen is capable of tracking two or more fingers fully independently. |
String | FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device's touch screen is capable of tracking a full hand of fingers fully independently -- that is, 5 or more simultaneous independent pointers. |
String | FEATURE_FAKETOUCH Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device does not have a touch screen, but does support touch emulation for basic events. |
String | FEATURE_FAKETOUCH_MULTITOUCH_DISTINCT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device does not have a touch screen, but does support touch emulation for basic events that supports distinct tracking of two or more fingers. |
String | FEATURE_FAKETOUCH_MULTITOUCH_JAZZHAND Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device does not have a touch screen, but does support touch emulation for basic events that supports tracking a hand of fingers (5 or more fingers) fully independently. |
String | FEATURE_FINGERPRINT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has biometric hardware to detect a fingerprint. |
String | FEATURE_SCREEN_PORTRAIT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports portrait orientation screens. |
String | FEATURE_SCREEN_LANDSCAPE Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports landscape orientation screens. |
String | FEATURE_LIVE_WALLPAPER Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports live wallpapers. |
String | FEATURE_APP_WIDGETS Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports app widgets. |
String | FEATURE_HOME_SCREEN Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports a home screen that is replaceable by third party applications. |
String | FEATURE_INPUT_METHODS Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports adding new input methods implemented with the android.inputmethodservice.InputMethodService API. |
String | FEATURE_DEVICE_ADMIN Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports device policy enforcement via device admins. |
String | FEATURE_LEANBACK Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports leanback UI. |
String | FEATURE_LIVE_TV Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports live TV and can display contents from TV inputs implemented with the android.media.tv.TvInputService API. |
String | FEATURE_WIFI Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports WiFi (802.11) networking. |
String | FEATURE_WIFI_DIRECT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports Wi-Fi Direct networking. |
String | FEATURE_AUTOMOTIVE Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device dedicated to showing UI on a vehicle headunit. |
String | FEATURE_TELEVISION Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device dedicated to showing UI on a television. |
String | FEATURE_WATCH Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device dedicated to showing UI on a watch. |
String | FEATURE_EMBEDDED Feature for #getSystemAvailableFeatures and #hasSystemFeature : This is a device for IoT and may not have an UI. |
String | FEATURE_PRINTING Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports printing. |
String | FEATURE_BACKUP Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device can perform backup and restore operations on installed applications. |
String | FEATURE_PICTURE_IN_PICTURE Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports picture-in-picture multi-window mode. |
String | FEATURE_MANAGED_USERS Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports creating secondary users and managed profiles via DevicePolicyManager . |
String | FEATURE_VERIFIED_BOOT Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports verified boot. |
String | FEATURE_SECURELY_REMOVES_USERS Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device supports secure removal of users. |
String | FEATURE_WEBVIEW Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a full implementation of the android.webkit.* APIs. |
String | FEATURE_GAMEPAD Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has all of the inputs necessary to be considered a compatible game controller, or includes a compatible game controller in the box. |
String | FEATURE_MIDI Feature for #getSystemAvailableFeatures and #hasSystemFeature : The device has a full implementation of the android.media.midi.* APIs. |
int | checkPermission(String permName, String pkgName) Check whether a particular package has been granted a particular permission. |
int | checkSignatures(String pkg1, String pkg2) Compare the signatures of two packages to determine if the same signature appears in both of them. |
int | checkSignatures(int uid1, int uid2) Like #checkSignatures(String,String) , but takes UIDs of the two packages to be checked. |
void | clearPackagePreferredActivities(String packageName) Remove all preferred activity mappings, previously added with #addPreferredActivity , from the system whose activities are implemented in the given package name. |
void | deletePackage(String packageName, IPackageDeleteObserver observer, @DeleteFlags int flags) Attempts to delete a package. |
Drawable | getActivityIcon(ComponentName activityName) Retrieve the icon associated with an activity. |
Drawable | getActivityIcon(Intent intent) Retrieve the icon associated with an Intent. |
ActivityInfo | getActivityInfo(ComponentName component, @ComponentInfoFlags int flags) Retrieve all of the information we know about a particular activity class. |
Drawable | getActivityLogo(ComponentName activityName) Retrieve the logo associated with an activity. |
Drawable | getActivityLogo(Intent intent) Retrieve the logo associated with an Intent. |
List | getAllPermissionGroups(@PermissionGroupInfoFlags int flags) Retrieve all of the known permission groups in the system. |
int | getApplicationEnabledSetting(@NonNull String packageName) Return the enabled setting for an application. |
Drawable | getApplicationIcon(ApplicationInfo info) Retrieve the icon associated with an application. |
Drawable | getApplicationIcon(String packageName) Retrieve the icon associated with an application. |
ApplicationInfo | getApplicationInfo(String packageName, @ApplicationInfoFlags int flags) Retrieve all of the information we know about a particular package/application. |
CharSequence | getApplicationLabel(ApplicationInfo info) Return the label to use for this application. |
ChangedPackages | getChangedPackages(@IntRange(from = 0) int sequenceNumber) Returns the names of the packages that have been changed [eg. |
Class> | getClass() Returns the runtime class of this Object . |
int | getComponentEnabledSetting(@NonNull ComponentName componentName) Return the enabled setting for a package component (activity, receiver, service, provider). |
Drawable | getDefaultActivityIcon() Return the generic icon for an activity that is used when no specific icon is defined. |
Drawable | getDrawable(String packageName, @DrawableRes int resid, ApplicationInfo appInfo) Retrieve an image from a package. |
List | getInstalledApplications(@ApplicationInfoFlags int flags) Return a List of all application packages that are installed for the current user. |
List | getInstalledPackages(@PackageInfoFlags int flags) Return a List of all packages that are installed for the current user. |
String | getInstallerPackageName(String packageName) Retrieve the package name of the application that installed a package. |
Intent | getLaunchIntentForPackage(@NonNull String packageName) Returns a "good" intent to launch a front-door activity in a package. |
String | getNameForUid(int uid) Retrieve the official name associated with a uid. |
PackageInfo | getPackageArchiveInfo(String archiveFilePath, @PackageInfoFlags int flags) Retrieve overall information about an application package defined in a package archive file |
PackageInfo | getPackageInfo(String packageName, @PackageInfoFlags int flags) Retrieve overall information about an application package that is installed on the system. |
PackageInfo | getPackageInfo(VersionedPackage versionedPackage, @PackageInfoFlags int flags) Retrieve overall information about an application package that is installed on the system. |
String[] | getPackagesForUid(int uid) Retrieve the names of all packages that are associated with a particular user id. |
PermissionGroupInfo | getPermissionGroupInfo(String name, @PermissionGroupInfoFlags int flags) Retrieve all of the information we know about a particular group of permissions. |
PermissionInfo | getPermissionInfo(String name, @PermissionInfoFlags int flags) Retrieve all of the information we know about a particular permission. |
int | getPreferredActivities(@NonNull List Retrieve all preferred activities, previously added with #addPreferredActivity , that are currently registered with the system. |
List | getPreferredPackages(@PackageInfoFlags int flags) Retrieve the list of all currently configured preferred packages. |
ProviderInfo | getProviderInfo(ComponentName component, @ComponentInfoFlags int flags) Retrieve all of the information we know about a particular content provider class. |
Resources | getResourcesForActivity(ComponentName activityName) Retrieve the resources associated with an activity. |
Resources | getResourcesForApplication(ApplicationInfo app) Retrieve the resources for an application. |
Resources | getResourcesForApplication(String appPackageName) Retrieve the resources associated with an application. |
ServiceInfo | getServiceInfo(ComponentName component, @ComponentInfoFlags int flags) Retrieve all of the information we know about a particular service class. |
FeatureInfo[] | getSystemAvailableFeatures() Get a list of features that are available on the system. |
CharSequence | getText(String packageName, @StringRes int resid, ApplicationInfo appInfo) Retrieve text from a package. |
Drawable | getUserBadgedDrawableForDensity(Drawable drawable, UserHandle user, Rect badgeLocation, int badgeDensity) If the target user is a managed profile of the calling user or the caller is itself a managed profile, then this returns a badged copy of the given drawable allowing the user to distinguish it from the original drawable. |
Drawable | getUserBadgedIcon(Drawable icon, UserHandle user) If the target user is a managed profile, then this returns a badged copy of the given icon to be able to distinguish it from the original icon. |
boolean | hasSystemFeature(String name) Check whether the given feature name is one of the available features as returned by #getSystemAvailableFeatures() . |
List | queryBroadcastReceivers(Intent intent, @ResolveInfoFlags int flags) Retrieve all receivers that can handle a broadcast of the given intent. |
List | queryContentProviders(String processName, int uid, @ComponentInfoFlags int flags) Retrieve content provider information. |
List | queryIntentActivities(Intent intent, @ResolveInfoFlags int flags) Retrieve all activities that can be performed for the given intent. |
List | queryIntentActivityOptions(@Nullable ComponentName caller, @Nullable Intent[] specifics, Intent intent, @ResolveInfoFlags int flags) Retrieve a set of activities that should be presented to the user as similar options. |
List | queryIntentContentProviders(Intent intent, @ResolveInfoFlags int flags) Retrieve all providers that can match the given intent. |
List | queryIntentServices(Intent intent, @ResolveInfoFlags int flags) Retrieve all services that can match the given intent. |
List | queryPermissionsByGroup(String group, @PermissionInfoFlags int flags) Query for all of the permissions associated with a particular group. |
ResolveInfo | resolveActivity(Intent intent, @ResolveInfoFlags int flags) Determine the best action to perform for a given Intent. |
ProviderInfo | resolveContentProvider(String name, @ComponentInfoFlags int flags) Find a single content provider by its base path name. |
ResolveInfo | resolveService(Intent intent, @ResolveInfoFlags int flags) Determine the best service to handle for a given Intent. |
void | setApplicationEnabledSetting(@NonNull String packageName, @EnabledState int newState, @EnabledFlags int flags) Set the enabled setting for an application This setting will override any enabled state which may have been set by the application in its manifest. |
void | setComponentEnabledSetting(@NonNull ComponentName componentName, @EnabledState int newState, @EnabledFlags int flags) Set the enabled setting for a package component (activity, receiver, service, provider). |