intent icon indicating copy to clipboard operation
intent copied to clipboard

Missing setComponent.

Open mustakimpawle opened this issue 5 years ago • 4 comments

How can I set Component and open startup manager app using it?

mustakimpawle avatar Jun 23 '20 09:06 mustakimpawle

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 ?

zj902 avatar Jun 24 '20 10:06 zj902

@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();

deviankim avatar Feb 22 '21 15:02 deviankim

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

ancileddu avatar May 18 '21 17:05 ancileddu

Hi Sorry for late. I recommend android_intent library android_intent It has parameters you want [package, componentName].

deviankim avatar May 23 '21 20:05 deviankim