Stay organized with collections
Save and categorize content based on your preferences.
AppInfo
class AppInfo
Application Info class containing details about a given application
Summary
Public methods |
Bitmap? |
Returns the application icon as bitmap
|
String? |
Returns the application name/label
|
String |
Returns the application package name
|
Public methods
getIcon
fun getIcon(): Bitmap?
Returns the application icon as bitmap
Return |
Bitmap? |
This value may be null . |
getName
fun getName(): String?
Returns the application name/label
Return |
String? |
This value may be null . |
getPackageName
fun getPackageName(): String
Returns the application package name
Return |
String |
This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AppInfo\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAppInfo\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/health/connect/datatypes/AppInfo \"View this page in Java\") \n\n```\nclass AppInfo\n```\n\n|---|-----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.health.connect.datatypes.AppInfo](#) |\n\nApplication Info class containing details about a given application\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------|\n| [Bitmap](../../../graphics/Bitmap.html#)? | [getIcon](#getIcon())`()` Returns the application icon as bitmap |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | [getName](#getName())`()` Returns the application name/label |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getPackageName](#getPackageName())`()` Returns the application package name |\n\nPublic methods\n--------------\n\n### getIcon\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getIcon(): Bitmap?\n```\n\nReturns the application icon as bitmap\n\n| Return ||\n|-------------------------------------------|---------------------------|\n| [Bitmap](../../../graphics/Bitmap.html#)? | This value may be `null`. |\n\n### getName\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getName(): String?\n```\n\nReturns the application name/label\n\n| Return ||\n|-----------------------------------------------------------------------------------|---------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? | This value may be `null`. |\n\n### getPackageName\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getPackageName(): String\n```\n\nReturns the application package name\n\n| Return ||\n|----------------------------------------------------------------------------------|------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | This value cannot be `null`. |"]]