Skip to content Skip to sidebar Skip to footer

How Can I Use The Note To Self Intent From Google Now?

I know its not best practice, but i want to use thr Note To Self intent to send an email in the background. I found an AUTO_SEND intent that Keep uses, but I can't seem to open Gma

Solution 1:

You can't.

This action is handled by this activity and requires permission com.google.android.gm.permission.AUTO_SEND

<activityandroid:name="com.google.android.gm.AutoSendActivity"...android:permission="com.google.android.gm.permission.AUTO_SEND"><intent-filterandroid:label="@string/app_name"><actionandroid:name="com.google.android.gm.action.AUTO_SEND" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="*/*" /></intent-filter></activity>

This permission is defined in Gmail's manifest, and it's a limited to Google's applications (or more precisely signed with the same key as Gmail).

<permission android:name="com.google.android.gm.permission.AUTO_SEND"
            android:permissionGroup="android.permission-group.MESSAGES"
            android:protectionLevel="signature" android:label="@string/auto_send_perm_label"
            android:description="@string/auto_send_perm_desc"/>

Post a Comment for "How Can I Use The Note To Self Intent From Google Now?"