Android偏好设置“发送反馈”
问题描述:
我试图在我的设置中添加“发送反馈”选项。主题和文本正常工作。但电子邮件地址将不被接受。我该怎么做,电子邮件被接受,因为这是我认为的重要额外!?Android偏好设置“发送反馈”
<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="[email protected]"/>
<extra
android:name="android.intent.extra.SUBJECT"
android:value="Feedback"/>
<extra
android:name="android.intent.extra.TEXT"
android:value="Text of Feedback"/>
</intent>
</Preference>
答
试试这个
<Preference
android:title="@string/pre_title_feedback"
android:summary="@string/pre_summary_feedback">
<intent
android:action="android.intent.action.VIEW"
android:data="mailto:[email protected]">
<extra
android:name="android.intent.extra.SUBJECT"
android:value="Feedback"/>
<extra
android:name="android.intent.extra.TEXT"
android:value="Text of Feedback"/>
</intent>
</Preference>
你是如何发送电子邮件? –
当我选择首选项时,会显示一个意向选择器,并选择gmail。或者你是什么意思? –