Open other apps

153 views
Skip to first unread message

Ralf Denhof

unread,
Jul 15, 2020, 4:34:48 PM7/15/20
to Flutter Development (flutter-dev)
Hi,

I'm new to Android/Flutter development and facing a serious issue while trying to open another app out of my Flutter application.

I tried to use android_intent to open the other app in the following way (based on android_intent example):

final AndroidIntent intent = AndroidIntent(
   action: 'action_view',
   flags: <int>[Flag.FLAG_ACTIVITY_NEW_TASK],
   package: 'com.mypackage.myapp'
);
intent.launch();


This leads to App Chooser being opened and I notice following log entry:

I/IntentSender(16338): Cannot resolve explicit intent - ignoring package 

com.mypackage.myapp is exactly the package name of the app I want to open as defined in Android manifest.xml.

Do I miss s.th.?

Best,
Ralf

Fabricio Valadares

unread,
Jul 15, 2020, 4:43:31 PM7/15/20
to Ralf Denhof, Flutter Development (flutter-dev)
Hey, how are you?

I found this, check if it work ;)


Regards,
---
Fabrício G. Valadares
Lattes: http://lattes.cnpq.br/1002632563427298
Mobile: +55 31 9 9357-6193
mail: fabricio....@gmail.com

Os homens conseguiriam muito mais coisas se julgassem menos coisas impossíveis.

Embora ninguém possa voltar atrás e fazer um novo começo, qualquer um pode começar agora e fazer um novo fim. Francisco Cândido Xavier


The information contained in this email and any attachments is confidential and may be subject to copyright or other intellectual property protection. If you are not the intended recipient, you are not authorized to use or disclose this information, and we request that you notify us by reply mail or telephone and delete the original message from your mail system.



--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/ef402ec8-34b2-4ff1-bb01-d67ed043c20cn%40googlegroups.com.

Ralf Denhof

unread,
Jul 16, 2020, 3:47:07 PM7/16/20
to Flutter Development (flutter-dev)
Hi Fabricio,

Thanks for quick response. I'm using exactly the package you've mentioned. 

In the meantime I found helpful documentation mentioning android.intent.category.DEFAULT as a prerequisite. After adding 

<intent-filter>
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.DEFAULT" />
</intent-filter>


to my MainActivity everything works like a charm.

Best,
Ralf
Reply all
Reply to author
Forward
0 new messages