Thursday, February 9, 2023

Android Context Menu : Long Press of text display Bing Search menu, Where did it come from?

What Android app is creating the menu 'Bing Search' in apps when long pressing text?

The Andorid app Outlook has an intent-filter in its Manifest file that enables it to show up in the long-press context menu when highlighting text. This intent-filter is disabled unless the feature flag "Edge Integration" is enabled.

<activity android:configChanges="0x4a0" android:enabled="false" android:label="@string/browser_bing_search" android:name="com.microsoft.emmx.webview.search.SearchBridgeActivity" android:theme="@style/BrowserDefaultLightTheme">
<intent-filter>
<action android:name="android.intent.action.PROCESS_TEXT"/>
<category android:name="android.intent.category.DEFAULT"/>
<data android:mimeType="text/plain"/>
</intent-filter>
</activity>

Now we know!