Missing setComponent.
How can I set Component and open startup manager app using it?
android_intent has componentName,and it works. But it does not support returning the result of the launched activity. So can we add component features ?
@mustakimpawle @zj902 I made PR #48 For now, you can use my solution using below codes in pubspec.yaml and dart.
# intent: ^1.4.0
intent:
git:
url: https://github.com/ssk-flutter/intent.git
ref: feature/introduce-set-component
Intent()
..setPackage('app.package.name')
..setComponent('class.name.here') // for java setComponent(ComponentName("app.package.name", "class.name.here"))
..startActivity();
Hi @deviankim. i can't use your solution because i've compile error "Keyword cannot be used as a reference" in IntentPlugin.kt (.pub-cache\git\intent-6e74fad9d282a0ee65dffb213d49483dae0c6933\android\src\main\kotlin\io\github\itzmeanjan\intent\IntentPlugin.kt: (226, 52)) Can you help me? thanks
Hi Sorry for late. I recommend android_intent library android_intent It has parameters you want [package, componentName].