Intent - A simple Flutter plugin to deal with Android Intents

Overview

intent

A simple flutter plugin to deal with Android Intents - your one stop solution for Android Intents, written with ❤️ .

Show some ❤️ by putting

intent tries to help you in launching another android activity using Android Intents. This Dart API replicates Android Intent API, so for detailed information on how to use it efficiently, when to send what kind of data, you may be interested in taking a look here, which explains things more elaborately.

intent is readily available for use.

what does it do ?

  • intent is your one stop solution for handling different Android Intents from Flutter app.
  • It provides an easy to use Dart API, which can be used to launch different kind of Android Activities
  • You can view / create documents
  • Pick document(s) from Document Tree
  • Open default Assist Activity
  • Perform a Web Search
  • Request definition of a certain string to default Assist Activity
  • Open image for editing / viewing
  • Share text / multimedia to another activity
  • Send Email to specific user, while also setting CC & BCC
  • Share multiple documents at a time
  • Sync system content
  • Translate text
  • Set Wallpaper
  • Open any URL
  • Open Dialer for calling a specific number
  • Can pick a contact from your default phone activity
  • Can capture a photo using default Camera Activity

latest addition

Newest Addition: You can pass extra data's type information, while invoking Intent.putExtra(String extra, dynamic data, {String type}) as optional named param type. You don't even need to hardcode type names as Strings, rather a class named TypedExtra has been given to developers, which has all currently supported type names as static variables. Consider using them. And last but not least, this is not a breaking change !!!

print(e));">
import 'package:intent/intent.dart' as android_intent;
import 'package:intent/extra.dart' as android_extra;
import 'package:intent/typedExtra.dart' as android_typedExtra;
import 'package:intent/action.dart' as android_action;

// more codes ...

android_intent.Intent()
        ..setAction(android_action.Action.ACTION_SHOW_APP_INFO)
        ..putExtra(android_extra.Extra.EXTRA_PACKAGE_NAME, "com.whatsapp", type: android_typedExtra.TypedExtra.stringExtra)
        ..startActivity().catchError((e) => print(e));

how to use it ?

Well make sure, you include intent in your pubspec.yaml.

Define a Term :

print(e));">
Intent()
        ..setAction(Action.ACTION_DEFINE)
        ..putExtra(Extra.EXTRA_TEXT, "json")
        ..startActivity().catchError((e) => print(e));

Show Desired Application Info :

Make sure you address app using its unique package id.

print(e));">
Intent()
        ..setAction(Action.ACTION_SHOW_APP_INFO)
        ..putExtra(Extra.EXTRA_PACKAGE_NAME, "com.whatsapp")
        ..startActivity().catchError((e) => print(e));

Show Application Preference Activity :

Intent()
        ..setAction(Action.ACTION_APPLICATION_PREFERENCES)
        ..startActivity().catchError((e) => print(e));

Launch Application Error Reporting Activity :

Intent()
        ..setAction(Action.ACTION_APP_ERROR)
        ..startActivity().catchError((e) => print(e));

Launch Default Assist Activity :

Intent()
        ..setAction(Action.ACTION_ASSIST)
        ..startActivity().catchError((e) => print(e));

Report Bug :

Intent()
        ..setAction(Action.ACTION_BUG_REPORT)
        ..startActivity().catchError((e) => print(e));

View a URI :

Which activity to be launched, depends upon type of URI passed.

In case of passing tel URI, opens dialer up.

print(e));">
Intent()
        ..setAction(Action.ACTION_VIEW)
        ..setData(Uri(scheme: "tel", path: "123"))
        ..startActivity().catchError((e) => print(e));

If you pass a mailto URI, it'll open email app.

print(e));">
Intent()
        ..setAction(Action.ACTION_VIEW)
        ..setData(Uri(scheme: "mailto", path: "[email protected]"))
        ..startActivity().catchError((e) => print(e));

In case of http/ https URI, opens browser up.

print(e));">
Intent()
        ..setAction(Action.ACTION_VIEW)
        ..setData(Uri(scheme: "https", host:"google.com"))
        ..startActivity().catchError((e) => print(e));

Dial a Number using Default Dial Activity :

Setting data using tel URI, will open dialer, number as input.

Intent()
        ..setAction(Action.ACTION_DIAL)
        ..setData(Uri(scheme: 'tel', path: '121'))
        ..startActivity().catchError((e) => print(e));

But if you're interested in opening dialer without any numbers dialer, make sure you don't set data field.

Intent()
        ..setAction(Action.ACTION_DIAL)
        ..startActivity().catchError((e) => print(e));

Calling a Number :

You can simply call a number, but make sure you've necessary permissions to do so.

Intent()
        ..setAction(Action.ACTION_CALL)
        ..setData(Uri(scheme: 'tel', path: '121'))
        ..startActivity().catchError((e) => print(e));

It'll always be a wise decision to use ACTION_DIAL, because that won't require any kind of permissions.

Create Precomposed Email :

print(e));">
Intent()
        ..setPackage("com.google.android.gm")
        ..setAction(Action.ACTION_SEND);
        ..setType("message/rfc822");
        ..putExtra(Extra.EXTRA_EMAIL, ["[email protected]"]);
        ..putExtra(Extra.EXTRA_CC, ["[email protected]"]);
        ..putExtra(Extra.EXTRA_SUBJECT, "Foo bar");
        ..putExtra(Extra.EXTRA_TEXT, "Lorem ipsum");
        ..startActivity().catchError((e) => print(e));

Create a Document :

Content type of document is set text/plain, category is CATEGORY_OPENABLE and file name is passed as an extra i.e. EXTRA_TITLE.

print(e));">
Intent()
        ..setAction(Action.ACTION_CREATE_DOCUMENT)
        ..setType("text/plain")
        ..addCategory(Category.CATEGORY_OPENABLE)
        ..putExtra(Extra.EXTRA_TITLE, "test.txt")
        ..startActivity().catchError((e) => print(e));

You can also set path of file using data field. But make sure data field is a valid path URI.

Edit Document :

You can edit image/ text or any other kind of data using appropriate activity.

Intent()
        ..setAction(Action.ACTION_EDIT)
        ..setData(Uri(scheme: 'content',
                path:
                'path-to-image'))
        ..setType('image/*')
        ..startActivity().catchError((e) => print(e));

Add a Contact to your Contact Database :

Intent()
        ..setAction('com.android.contacts.action.SHOW_OR_CREATE_CONTACT')
        ..setData(Uri(scheme: 'tel', path: '1234567890'))
        ..startActivity().catchError((e) => print(e));

Search for a Term :

Opens up a list of eligible candidates, which can provides search activity.

Intent()
        ..setAction(Action.ACTION_SEARCH)
        ..putExtra(Extra.EXTRA_TEXT, 'json')
        ..startActivity().catchError((e) => print(e));

Share Text/ Media :

Make sure you've set appropriate path URI for sharing documents/ media using EXTRA_STREAM and also set type properly.

Following one will share a plain text. For sharing html formatted text, set type to text/html.

Intent()
        ..setAction(Action.ACTION_SEND)
        ..setType('text/plain')
        ..putExtra(Extra.EXTRA_TEXT, 'json')
        ..startActivity().catchError((e) => print(e));

But if you're interested in creating a chooser i.e. all eligible candidates shown up system, which can handle this intent, make sure you set createChooser named parameter to true, which is by default false.

Send Email to certain ID while setting Content and CC/ BCC :

Intent()
        ..setAction(Action.ACTION_SENDTO)
        ..setData(Uri(scheme: 'mailto', path: '[email protected]'))
        ..putExtra(Extra.EXTRA_CC, ['[email protected]'])
        ..putExtra(Extra.EXTRA_TEXT, 'Hello World')
        ..startActivity().catchError((e) => print(e));

Translate a Text using default Assist Activity :

print(e));">
Intent()
        ..setAction(Action.ACTION_TRANSLATE)
        ..putExtra(Extra.EXTRA_TEXT, "I Love Computers")
        ..startActivity().catchError((e) => print(e));

Pick a Contact up from Phone :

  • Opens default Phone Activity and let user pick a contact up, selected contact will be returned as Future > from startActivityForResult().
print(data), onError: (e) => print(e));">
        Intent()
                ..setAction(Action.ACTION_PICK)
                ..setData(Uri.parse('content://contacts'))
                ..setType("vnd.android.cursor.dir/phone_v2")
                ..startActivityForResult().then((data) => print(data),
                onError: (e) => print(e));

Capture Image using default Camera activity :

Path to captured image can be grabbed from Intent().startActivityForResult().then(() { ... } ), which will be provided in form of List , open file using that path, File(data[0]). Now you can work on that image file.

        Intent()
                ..setAction(Action.ACTION_IMAGE_CAPTURE)
                ..startActivityForResult().then((data) => print(data[0]), // gets you path to image captured
                onError: (e) => print(e));

image_capture_using_intent

If you're not interested in showing default activity launch animation, set following flag.

Intent()..addFlag(Flag.FLAG_ACTIVITY_NO_ANIMATION);

If you don't want this activity to be displayed in recents, set following flag.

Intent()..addFlag(Flag.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);

If you request for certain Activity and no eligible candidate was found, you'll receive one error message, which you can listen for using Future.catchError((e) {},) method.

PlatformException(Error, android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SYSTEM_TUTORIAL }, null)

Currently a limited number of Actions are provided in Action class, but you can always use a string constant as an Action, which will help you in dealing with many more Activities.

Hoping this helps 😉

Comments
  • ACTION_CREATE_DOCUMENT kotlin.KotlinNullPointerException

    ACTION_CREATE_DOCUMENT kotlin.KotlinNullPointerException

    I am trying to create a file using ACTION_CREATE_DOCUMENT. The intent launch the file manager but once after I save the file, my flutter apps dies to this exception.

    Intent()
          ..setAction(Action.ACTION_CREATE_DOCUMENT)
          ..setType("application/pdf")
          ..setData(Uri(path: path))
          ..addCategory(intent_category.Category.CATEGORY_OPENABLE)
          ..putExtra(Extra.EXTRA_TITLE, "path.pdf")
          ..startActivityForResult()
              .catchError((e) => print(e))
              .then((value) => print(value));
    
    E/AndroidRuntime(11603): Caused by: kotlin.KotlinNullPointerException
    E/AndroidRuntime(11603): 	at io.github.itzmeanjan.intent.IntentPlugin.uriToFilePath(IntentPlugin.kt:252)
    E/AndroidRuntime(11603): 	at io.github.itzmeanjan.intent.IntentPlugin.access$uriToFilePath(IntentPlugin.kt:20)
    E/AndroidRuntime(11603): 	at io.github.itzmeanjan.intent.IntentPlugin$onMethodCall$1.onActivityResult(IntentPlugin.kt:58)
    E/AndroidRuntime(11603): 	at io.flutter.embedding.engine.FlutterEnginePluginRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEnginePluginRegistry.java:691)
    E/AndroidRuntime(11603): 	at io.flutter.embedding.engine.FlutterEnginePluginRegistry.onActivityResult(FlutterEnginePluginRegistry.java:378)
    E/AndroidRuntime(11603): 	at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:597)
    E/AndroidRuntime(11603): 	at io.flutter.embedding.android.FlutterFragment.onActivityResult(FlutterFragment.java:699)
    E/AndroidRuntime(11603): 	at io.flutter.embedding.android.FlutterFragmentActivity.onActivityResult(FlutterFragmentActivity.java:510)
    E/AndroidRuntime(11603): 	at android.app.Activity.dispatchActivityResult(Activity.java:8393)
    E/AndroidRuntime(11603): 	at android.app.ActivityThread.deliverResults(ActivityThread.java:5442
    
    opened by brendansiow 5
  • Add intent.setPackage method

    Add intent.setPackage method

    Hello Anjan, hello community

    I added the package attribute to the intent object. This should give us a setPackage method.

    setPackage(String packageName) is used to suppress a chooser menu and open the intent with given app directly: https://developer.android.com/reference/kotlin/android/content/Intent#setpackage

    See also the README for a concrete use case.

    Could you please incorporate this change into your next release soon-ish? We need this feature for a go-live..

    Thanks!

    • Togi
    opened by togiberlin 4
  • latest version error BuildConfig.java:12: error: annotations are not supported in -source 1.3   @Deprecated

    latest version error BuildConfig.java:12: error: annotations are not supported in -source 1.3 @Deprecated

    C:\Users\kotai\AndroidStudioProjects\barcode_app\build\intent\generated\source\buildConfig\debug\io\github\itzmeanjan\intent\BuildConfig.java:12: error: annotations are not supported in -source 1.3 @Deprecated ^ (use -source 5 or higher to enable annotations) 1 error 3 warnings

    FAILURE: Build failed with an exception.

    • What went wrong: Execution failed for task ':intent:compileDebugJavaWithJavac'.

    Compilation failed; see the compiler error output for details.

    opened by kw2019ltd 3
  • Bugfix: escape package, as it's a Java keyword

    Bugfix: escape package, as it's a Java keyword

    opened by togiberlin 3
  • how to open contact detail page

    how to open contact detail page

    I want following code via this plugging can someone help how can i do??

    Intent intent = new Intent(Intent.ACTION_VIEW);
    Uri uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_URI,
    String.valueOf(contactID));
    intent.setData(uri);
    context.startActivity(intent);
    
    opened by urvashikharecha 3
  • error in sharing to story Instagram

    error in sharing to story Instagram

    Due to the Sharing to Stories in Instagram, I got this error:

    PlatformException(Error, android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.instagram.share.ADD_TO_STORY typ=png flg=0x1 (has extras) }, null)

    Here is my example code:

    Intent()
              ..setAction("com.instagram.share.ADD_TO_STORY")
              ..setType("png")
              ..setData(Uri.parse(exportedFile.path))
              ..addFlag(1) // FLAG_GRANT_READ_URI_PERMISSION = 1
              ..putExtra("content_url", "http://vocofit.ir")
              ..startActivity().catchError((e) => print(e));
    

    Is there any problem in my code?

    opened by arefhosseini 3
  • android:authorities wrong

    android:authorities wrong

    Hi, the plugin hardcodes the plugin authority to io.github.itzmeanjan.intent.fileProvider and it causes a conflict when using 2 apps on the same phone that use the library, here is the error I got

    Failure [INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.blankedOut.projectone-RhGbhs4NKuaKfdXJ62UF5w==: Can't install because provider name io.github.itzmeanjan.intent.fileProvider (in package com.blankedOut.projectone) is already used by com.blankedOut.projecttwo]

    You cannot have 2 apps with this library on the same phone, please fix the provider id

    opened by thesipguy 2
  • No app functionality enabled

    No app functionality enabled

    Thank you for creating great features. Unfortunately, there is one problem.

    When you install several apps created with this function on your mobile phone, There is a problem that the function does not work and Google Play update does not work.

    I found this symptom in the phone dialing feature.

    Calling a Number : #

    opened by hayasisuny 2
  • Is it possible to open App activity distributed in flutter android folder?

    Is it possible to open App activity distributed in flutter android folder?

    I have a native code that I am want to include to flutter package in android folder or on another plugin. Is it possible to open it though your plugin?

    opened by Alexufo 1
  • Can i navigate autostart with your Intent package?

    Can i navigate autostart with your Intent package?

    This's the sample code for android. Can i do this with your package?

    ` String manufacturer = android.os.Build.MANUFACTURER; try { Intent intent = new Intent(); if ("xiaomi".equalsIgnoreCase(manufacturer)) { intent.setComponent(new ComponentName("com.miui.securitycenter", "com.miui.permcenter.autostart.AutoStartManagementActivity")); } else if ("oppo".equalsIgnoreCase(manufacturer)) { intent.setComponent(new ComponentName("com.coloros.safecenter", "com.coloros.safecenter.permission.startup.StartupAppListActivity")); } else if ("vivo".equalsIgnoreCase(manufacturer)) { intent.setComponent(new ComponentName("com.vivo.permissionmanager", "com.vivo.permissionmanager.activity.BgStartUpManagerActivity")); } else if ("Letv".equalsIgnoreCase(manufacturer)) { intent.setComponent(new ComponentName("com.letv.android.letvsafe", "com.letv.android.letvsafe.AutobootManageActivity")); } else if ("Honor".equalsIgnoreCase(manufacturer)) { intent.setComponent(new ComponentName("com.huawei.systemmanager", "com.huawei.systemmanager.optimize.process.ProtectActivity")); }

      List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
      if (list.size() > 0) {
                startActivity(intent);
      }
    

    } catch (Exception e) { e.printStackTrace(); } `

    opened by shinewanna 1
  • Not Recognizing

    Not Recognizing "audio/*" as a type

    Hi, The plugin is not recognizing intents for opening audio files in relevant applications It works fine for image/* and video/* type Here is my code snippet

                    final intent = android_intent.Intent()
                      ..setAction(android_action.Action.ACTION_VIEW)
                      ..setData(file.uri)
                      ..setType('audio/*'); //todo
                    await intent.startActivity();
    

    Error produced

    E/flutter ( 1679): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: PlatformException(Error, android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW typ=audio/* }, null)
    
    opened by yati989 1
  • The plugins `intent` use a deprecated version of the Android embedding.

    The plugins `intent` use a deprecated version of the Android embedding.

    i get this message after run flutter upgrade and flutter pub get :

    Running "flutter pub get" in mobile_jeanswest_app_android...         ۴٫۲s
    The plugins `intent` use a deprecated version of the Android embedding.
    To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated APIs.
    If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
    Process finished with exit code 0
    
    opened by mshamsi502 4
  • Error Handling Is Needed......

    Error Handling Is Needed......

    I have tried so many times then I finally got what I wanted. But my app crashed like 20 times. Every time I have to rebuilt it again. So I think there are issues related to error handling especially NULL pointer error.

    opened by RutvikRana 0
  • How to Intent to AppInfo Screen with package name?

    How to Intent to AppInfo Screen with package name?

    157917843_870597266847172_6230172749235747415_n Like This Screen (AppInfo)

    I try this but not work. I think something is missing on my code. Can u light me to carry on? openAppInfo(String package) { android_intent.Intent() ..setAction(android_action.Action.ACTION_SHOW_APP_INFO) ..putExtra(android_extra.Extra.EXTRA_PACKAGE_NAME, package) ..startActivity().catchError((e) => print(e)); }

    Clear thing is this code i want to use in flutter. Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); Uri uri = Uri.fromParts("package", getPackageName(), null); intent.setData(uri); startActivity(intent);

    Error Snippet E/MethodChannel#intent( 2449): Failed to handle method call E/MethodChannel#intent( 2449): kotlin.KotlinNullPointerException E/MethodChannel#intent( 2449): at io.github.itzmeanjan.intent.IntentPlugin.onMethodCall(IntentPlugin.kt:118) E/MethodChannel#intent( 2449): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233) E/MethodChannel#intent( 2449): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85) E/MethodChannel#intent( 2449): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818) E/MethodChannel#intent( 2449): at android.os.MessageQueue.nativePollOnce(Native Method) E/MethodChannel#intent( 2449): at android.os.MessageQueue.next(MessageQueue.java:335) E/MethodChannel#intent( 2449): at android.os.Looper.loop(Looper.java:193) E/MethodChannel#intent( 2449): at android.app.ActivityThread.main(ActivityThread.java:7876) E/MethodChannel#intent( 2449): at java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#intent( 2449): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) E/MethodChannel#intent( 2449): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) I/flutter ( 2449): PlatformException(error, null, null, kotlin.KotlinNullPointerException I/flutter ( 2449): at io.github.itzmeanjan.intent.IntentPlugin.onMethodCall(IntentPlugin.kt:118) I/flutter ( 2449): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233) I/flutter ( 2449): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85) I/flutter ( 2449): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818) I/flutter ( 2449): at android.os.MessageQueue.nativePollOnce(Native Method) I/flutter ( 2449): at android.os.MessageQueue.next(MessageQueue.java:335) I/flutter ( 2449): at android.os.Looper.loop(Looper.java:193) I/flutter ( 2449): at android.app.ActivityThread.main(ActivityThread.java:7876) I/flutter ( 2449): at java.lang.reflect.Method.invoke(Native Method) I/flutter ( 2449): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) I/flutter ( 2449): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) I/flutter ( 2449): )

    opened by shinewanna 0
  • Getting NullPointer exception startActivityForResult

    Getting NullPointer exception startActivityForResult

    I am trying the following example:

    android_intent.Intent()
          ..setAction('ACTION_PICK')
          ..setData(Uri.parse('content://contacts'))
          ..setType("vnd.android.cursor.dir/phone_v2")
          ..startActivityForResult().then((data) {
            print(data);
          }, onError: (e) => print(e));
    

    It results in this exception: D/AndroidRuntime(11988): Shutting down VM E/AndroidRuntime(11988): FATAL EXCEPTION: main E/AndroidRuntime(11988): Process: com.example.communication_test, PID: 11988 E/AndroidRuntime(11988): java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=999, result=0, data=null} to activity {com.example.communication_test/com.example.communication_test.MainActivity}: java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime(11988): at android.app.ActivityThread.deliverResults(ActivityThread.java:3574) E/AndroidRuntime(11988): at android.app.ActivityThread.handleSendResult(ActivityThread.java:3617) E/AndroidRuntime(11988): at android.app.ActivityThread.access$1300(ActivityThread.java:151) E/AndroidRuntime(11988): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1352) E/AndroidRuntime(11988): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime(11988): at android.os.Looper.loop(Looper.java:135) E/AndroidRuntime(11988): at android.app.ActivityThread.main(ActivityThread.java:5254) E/AndroidRuntime(11988): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(11988): at java.lang.reflect.Method.invoke(Method.java:372) E/AndroidRuntime(11988): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) E/AndroidRuntime(11988): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) E/AndroidRuntime(11988): Caused by: java.lang.IllegalStateException: Reply already submitted E/AndroidRuntime(11988): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:155) E/AndroidRuntime(11988): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:238) E/AndroidRuntime(11988): at io.github.itzmeanjan.intent.IntentPlugin$onMethodCall$5.sendDocument(IntentPlugin.kt:180) E/AndroidRuntime(11988): at io.github.itzmeanjan.intent.IntentPlugin$onMethodCall$1.onActivityResult(IntentPlugin.kt:63) E/AndroidRuntime(11988): at io.flutter.embedding.engine.FlutterEngineConnectionRegistry$FlutterEngineActivityPluginBinding.onActivityResult(FlutterEngineConnectionRegistry.java:739) E/AndroidRuntime(11988): at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.onActivityResult(FlutterEngineConnectionRegistry.java:426) E/AndroidRuntime(11988): at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onActivityResult(FlutterActivityAndFragmentDelegate.java:668) E/AndroidRuntime(11988): at io.flutter.embedding.android.FlutterActivity.onActivityResult(FlutterActivity.java:618) E/AndroidRuntime(11988): at android.app.Activity.dispatchActivityResult(Activity.java:6192) E/AndroidRuntime(11988): at android.app.ActivityThread.deliverResults(ActivityThread.java:3570) E/AndroidRuntime(11988): ... 10 more

    Can you tell me what i am doing wrong? I would like to receive some data back from an app which i launch with an intent.

    Tank you!

    opened by SwenWallnoefer 0
Owner
Anjan Roy
Learning :)
Anjan Roy
Flutter simple image crop - A simple and easy to use flutter plugin to crop image on iOS and Android

Image Zoom and Cropping plugin for Flutter A simple and easy used flutter plugin to crop image on iOS and Android. Installation Add simple_image_crop

null 97 Dec 14, 2021
Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.

Flutter permission_handler plugin The Flutter permission_handler plugin is build following the federated plugin architecture. A detailed explanation o

Baseflow 1.7k Dec 31, 2022
Klutter plugin makes it possible to write a Flutter plugin for both Android and iOS using Kotlin only.

The Klutter Framework makes it possible to write a Flutter plugin for both Android and iOS using Kotlin Multiplatform. Instead of writing platform spe

Gillian 33 Dec 18, 2022
Flutter plugin (android) for sharing bytes and files Offline, (Based on the android Nearby Connections API)

nearby_connections An android flutter plugin for the Nearby Connections API Currently supports Bytes and Files. Transfer Data between multiple connect

Prerak Mann 63 Nov 21, 2022
A Flutter plugin for IOS and Android providing a simple way to display PDFs.

Pdf Viewer Plugin A Flutter plugin for IOS and Android providing a simple way to display PDFs. Features: Display PDF. Installation First, add pdf_view

Lucas Britto 56 Sep 26, 2022
A simple yet powerful Flutter plugin for showing Toast at Android, iOS and Web.

Flutter Toast A simple yet powerful Flutter plugin for showing Toast at Android and iOS. Features: Native Toast Pure Flutter Toaster Installation Add

Eyro Labs 5 Dec 13, 2021
Flutter plugin to display a simple numeric keyboard on Android & iOS

numeric_keyboard A simple numeric keyboard widget Installation Add numeric_keyboard: ^1.1.0 in your pubspec.yaml dependencies. And import it: import '

Hugo EXTRAT 16 Sep 27, 2022
This is just the simplyfied Flutter Plugin use for one of the popular flutter plugin for social media login.

social_media_logins Flutter Plugin to login via Social Media Accounts. Available Social Media Logins: Facebook Google Apple Getting Started To use thi

Reymark Esponilla 3 Aug 24, 2022
Unloc customizations of the Permission plugin for Flutter. This plugin provides an API to request and check permissions.

Flutter Permission handler Plugin A permissions plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check perm

Unloc 1 Nov 26, 2020
A Flutter step_tracker plugin is collect information from user and display progress through a sequence of steps. this plugin also have privilege for fully customization from user side. like flipkart, amazon, myntra, meesho.

step_tracker plugin A Flutter step_tracker plugin is collect information from user and display progress through a sequence of steps. this plugin also

Roshan nahak 5 Oct 21, 2022
Flutter blue plus - Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android and iOS

Introduction FlutterBluePlus is a bluetooth plugin for Flutter, a new app SDK to

null 141 Dec 22, 2022
Flutter plugin for selecting images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotation, cropping, adding sticker/text/filters.

advance_image_picker Flutter plugin for selecting multiple images from the Android and iOS image library, taking new pictures with the camera, and edi

Weta Vietnam 91 Dec 19, 2022
A Flutter plugin integrated with Android-SerialPort-API

A Flutter plugin integrated with Android-SerialPort-API.

null 1 Nov 10, 2021
Flutter Local Notifications - Learn how to implement local notifications into both Android and iOS using flutter_local_notifications plugin.

Flutter Local Notifications Example Flutter Local Notifications - Learn how to implement local notifications into both Android and iOS using flutter_l

Sandip Pramanik 12 Nov 29, 2022
A Flutter plugin that provides assets abstraction management APIs without UI integration, you can get assets (image/video/audio) on Android, iOS and macOS.

photo_manager Photo/Assets management APIs for Flutter without UI integration, you can get assets (image/video/audio) from Android, iOS and macOS. 提供相

FlutterCandies 526 Jan 4, 2023
A Flutter Plugin for Volume Control and Monitoring, support iOS and Android

flutter_volume A flutter plugin for volume control and monitoring, support iOS and Android 手把手带你写 Flutter 系统音量插件 https://www.yuque.com/befovy/share/fl

befovy 35 Dec 9, 2022
A Flutter plugin for changing the Home Screen, Lock Screen (or both) Wallpaper on Android devices.

wallpaper_manager A Flutter plugin for changing the Home Screen, Lock Screen (or both) Wallpaper(s) on Android devices. Usage Installation In the pubs

Aditya Mulgundkar 38 Nov 28, 2022