2

I'm trying to add the "SELF_NOTE" intent to my cordova app, and it's not showing up in the "take a note" list of apps, in google now. I'm not trying to do anything with android wear, I just want my app to show up in the "take a note" app list in google now.

enter image description here

I tried to add the intent filter from this answer: How to create an Android Wear app with the note-taking voice action?, to my manifest, but the app doesn't show in the list of apps of "take a note" or "note to self".

My app DOES show up in the "share" menu, for example from chrome.

enter image description here

My manifest:

<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.Black.NoTitleBar"
android:windowSoftInputMode="adjustResize">
  <intent-filter android:label="@string/launcher_name">
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LAUNCHER" />
  </intent-filter>
  <intent-filter android:label="@string/launcher_name">
    <action android:name="android.intent.action.SEND" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="text/plain" />
  </intent-filter>
  <intent-filter android:label="@string/launcher_name">
    <action android:name="android.intent.action.SEND" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="com.google.android.voicesearch.SELF_NOTE" />
    <data android:mimeType="text/plain" />
  </intent-filter>
</activity>
Community
  • 1
  • 1
syonip
  • 2,762
  • 25
  • 27

1 Answers1

1

I've found the solution finally. There is a missing action that needs to be added to the manifest:

<action android:name="com.google.android.gm.action.AUTO_SEND" />
syonip
  • 2,762
  • 25
  • 27