DonCachopo
举人
Hi. Is there a intent I can use from another app to perform searches of flashcards ?
I would love to use tasker with this.
Thanks
I would love to use tasker with this.
Thanks
But this Search in the dictionaries, not in the cards database, right?You can use a custom URI scheme:
plecoapi://x-callback-url/s?q=(your search text)
But this Search in the dictionaries, not in the cards database, right?
Not through a URI, no. You can do it with a regular old text sharing action though - android.intent.action.SEND or android.intent.action.VIEW directed to PlecoDocumentReaderActivity.
const intent = AndroidIntent(
//action: 'android.content.Intent.ACTION_SEND', action: 'android.content.Intent.ACTION_VIEW',
package:'com.pleco.chinesesystem',
componentName:"com.pleco.chinesesystem.PlecoDocumentReaderActivity",
category:"Intent.CATEGORY_LAUNCHER",
type:"text/plain",
flags:<int>[Flag.FLAG_ACTIVITY_NEW_TASK,Flag.FLAG_ACTIVITY_CLEAR_TOP,Flag.FLAG_ACTIVITY_SINGLE_TOP],
arguments: {
"android.content.Intent.EXTRA_TEXT": "隐藏全部" },
);
await intent.launch();
android_intent_plus: ^3.1.1
.const intent = AndroidIntent(
action: 'android.content.Intent.ACTION_VIEW',
package:'com.pleco.chinesesystem',
componentName:"com.pleco.chinesesystem.PlecoDocumentReaderActivity",
category:"Intent.CATEGORY_LAUNCHER",
type:"text/plain",
flags:<int>[Flag.FLAG_ACTIVITY_NEW_TASK,Flag.FLAG_ACTIVITY_CLEAR_TOP,Flag.FLAG_ACTIVITY_SINGLE_TOP],
arguments: {
"android.content.Intent.EXTRA_TEXT": "test" },
);
await intent.launch();
android_intent_plus
Flutter package does the trick. Many thanks!