Stay organized with collections
Save and categorize content based on your preferences.
ApplicationRuntime
class ApplicationRuntime
Provides APIs to retrieve the information about the application loaded in the current runtime.
Summary
Public methods
getBaseApkOptimizationInfo
static fun getBaseApkOptimizationInfo(): DexFile.OptimizationInfo
Returns the optimization status of the base APK loaded in this process. If no base APK has been loaded in this process, this methods returns an object, but the contents are undefined.
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,["# ApplicationRuntime\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nApplicationRuntime\n==================\n\n```\nclass ApplicationRuntime\n```\n\n|---|---------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [dalvik.system.ApplicationRuntime](#) |\n\nProvides APIs to retrieve the information about the application loaded in the current runtime.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| static [DexFile.OptimizationInfo](/reference/kotlin/dalvik/system/DexFile.OptimizationInfo) | [getBaseApkOptimizationInfo](#getBaseApkOptimizationInfo())`()` Returns the optimization status of the base APK loaded in this process. |\n\nPublic methods\n--------------\n\n### getBaseApkOptimizationInfo\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic fun getBaseApkOptimizationInfo(): DexFile.OptimizationInfo\n```\n\nReturns the optimization status of the base APK loaded in this process. If no base APK has been loaded in this process, this methods returns an object, but the contents are undefined.\n\n| Return ||\n|--------------------------------------------------------------------------------------|------------------------------|\n| [DexFile.OptimizationInfo](/reference/kotlin/dalvik/system/DexFile.OptimizationInfo) | This value cannot be `null`. |"]]