Stay organized with collections
Save and categorize content based on your preferences.
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,["# Application.OnProvideAssistDataListener\n\nAdded in [API level 18](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nApplication.OnProvideAssistDataListener\n=======================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/app/Application.OnProvideAssistDataListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nApplication.OnProvideAssistDataListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------|\n| android.app.Application.OnProvideAssistDataListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback interface for use with [Application.registerOnProvideAssistDataListener](/reference/android/app/Application#registerOnProvideAssistDataListener(android.app.Application.OnProvideAssistDataListener))\nand [Application.unregisterOnProvideAssistDataListener](/reference/android/app/Application#unregisterOnProvideAssistDataListener(android.app.Application.OnProvideAssistDataListener)).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onProvideAssistData](/reference/android/app/Application.OnProvideAssistDataListener#onProvideAssistData(android.app.Activity,%20android.os.Bundle))`(`[Activity](/reference/android/app/Activity)` activity, `[Bundle](/reference/android/os/Bundle)` data) ` This is called when the user is requesting an assist, to build a full [Intent.ACTION_ASSIST](/reference/android/content/Intent#ACTION_ASSIST) Intent with all of the context of the current application. |\n\nPublic methods\n--------------\n\n### onProvideAssistData\n\nAdded in [API level 18](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onProvideAssistData (Activity activity, \n Bundle data)\n```\n\nThis is called when the user is requesting an assist, to build a full\n[Intent.ACTION_ASSIST](/reference/android/content/Intent#ACTION_ASSIST) Intent with all of the context of the current\napplication. You can override this method to place into the bundle anything\nyou would like to appear in the [Intent.EXTRA_ASSIST_CONTEXT](/reference/android/content/Intent#EXTRA_ASSIST_CONTEXT) part\nof the assist Intent.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|-------------------|\n| `activity` | `Activity` \u003cbr /\u003e |\n| `data` | `Bundle` \u003cbr /\u003e |"]]