Android首选项“发送反馈”

0 email android preferences android-intent

我正在尝试在设置中添加“发送反馈”选项。主题和文字效果很好。但是电子邮件地址将不被接受。我该怎么办,因为我认为这是重要的额外信息,所以电子邮件被接受了吗?

<Preference
    android:title="Send Feedback">
    <intent
        android:action="android.intent.action.SEND"
        android:mimeType="text/email">
        <extra
            android:name="android.intent.extra.EMAIL"
            android:value="mailto@email.com"/>
        <extra
            android:name="android.intent.extra.SUBJECT"
            android:value="Feedback"/>
        <extra
            android:name="android.intent.extra.TEXT"
            android:value="Text of Feedback"/>
    </intent>
</Preference>
Run Code Online (Sandbox Code Playgroud)

Ngh*_*Dao 6

尝试这个

<Preference
    android:title="@string/pre_title_feedback"
    android:summary="@string/pre_summary_feedback">
    <intent
        android:action="android.intent.action.VIEW"
        android:data="mailto:my@email.address">
        <extra
            android:name="android.intent.extra.SUBJECT"
            android:value="Feedback"/>
        <extra
            android:name="android.intent.extra.TEXT"
            android:value="Text of Feedback"/>
    </intent>
</Preference>
Run Code Online (Sandbox Code Playgroud)