Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 服务的操作过程\u文本_Android_Android Intent - Fatal编程技术网

Android 服务的操作过程\u文本

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

有没有一种方法可以在不启动活动的情况下使用Service或ContentPovider将突出显示的文本保存到DB? 我正在清单中尝试下一步,但是“添加到词汇表”选项没有出现

    <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>