Skip to content

Image file uri not received as EXTRA_STREAM, returns null #12

Description

@DennisVanRijswijk

AndroidManifest:

<intent-filter>
    <action android:name="android.intent.action.SEND"/>
    <category android:name="android.intent.category.DEFAULT"/>
     <data android:mimeType="image/*"/>
 </intent-filter>

JavaScript code:

CDV.WEBINTENT.hasExtra(CDV.WEBINTENT.EXTRA_STREAM, function(extra) {

    if( extra )
    {
        CDV.WEBINTENT.getExtra(CDV.WEBINTENT.EXTRA_STREAM, function(uri) {

                alert(uri); // this is null - why?

            }, function() {

               alert("INTENT ERROR 2");

            }

        );

    }

    }, function() {

        alert("INTENT ERROR 1");
    }

);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions