Android 服务的操作过程\u文本
有没有一种方法可以在不启动活动的情况下使用Service或ContentPovider将突出显示的文本保存到DB? 我正在清单中尝试下一步,但是“添加到词汇表”选项没有出现Android 服务的操作过程\u文本,android,android-intent,Android,Android Intent,有没有一种方法可以在不启动活动的情况下使用Service或ContentPovider将突出显示的文本保存到DB? 我正在清单中尝试下一步,但是“添加到词汇表”选项没有出现 <service android:name=".MyIntentService" android:label="Add to vocabulary" android:exported="true"
<service
android:name=".MyIntentService"
android:label="Add to vocabulary"
android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.PROCESS_TEXT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</service>