How To Create An Android Wear App With The Note-taking Voice Action?
I can't seem to figure out how to create an Android Wear application which would allow me to use it to take notes via built-in voice actions. I declare the intent filter as stated
Solution 1:
The trick is to include the category android.intent.category.DEFAULT
, as stated in the documentation on intents. If it is missing, no implicit intents can be received by the app. Besides that, it is important to include the MIME type text/plain
. The complete declaration is as follows:
<intent-filter><actionandroid:name="android.intent.action.SEND"/><categoryandroid:name="android.intent.category.DEFAULT"/><categoryandroid:name="com.google.android.voicesearch.SELF_NOTE"/><dataandroid:mimeType="text/plain"/></intent-filter>
Solution 2:
@Malcolm answer with add this line also. It will be working fine.
<actionandroid:name="com.google.android.gm.action.AUTO_SEND" />
The full part is
<intent-filter><actionandroid:name="android.intent.action.SEND"/><categoryandroid:name="android.intent.category.DEFAULT"/><categoryandroid:name="com.google.android.voicesearch.SELF_NOTE"/><actionandroid:name="com.google.android.gm.action.AUTO_SEND" /><dataandroid:mimeType="text/plain"/>
Post a Comment for "How To Create An Android Wear App With The Note-taking Voice Action?"