Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: "A resource Failed to Call Close" #18

Closed
haroic1997 opened this issue Jun 2, 2020 · 0 comments
Closed

Problem: "A resource Failed to Call Close" #18

haroic1997 opened this issue Jun 2, 2020 · 0 comments

Comments

@haroic1997
Copy link

Hi I am trying the most basic version of your app
The Croppy editing app will load. however once i Click the "Tick" button on the Croppy App. it just closes with a "W/System: A resource failed to call close. "
I couldnt get any result back probably because of that.
Any idea why this could happen?

`
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)

    when(requestCode){
        1->{
            if (resultCode== Activity.RESULT_OK&&data!=null)
            {
                imageURI_1= data.data!!
                val cropRequest=CropRequest.Auto(data.data!!,101)
                Log.d(TAG,"Start Croppy Activity")
                Croppy.start(mActivity,cropRequest)
            }
        }
        
        101->{
            Log.d(TAG,"Get Crop Result Back")
            imagebutton_1.setImageURI(data!!.data)
        }
    }
}

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant