Skip to content

No image is getting set in the Fragment #37

@aloklearning

Description

@aloklearning

I've tried a lot but no result is seen in the fragment what I did is exactly the same thing your document has said.

ImagePicker.setMinQuality(600, 600); addCoverImage.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { ImagePicker.pickImage((Activity) getContext(), "Select your image:"); } });

and then in onActivityResult() like this :

@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); Bitmap bitmap = ImagePicker.getImageFromResult(getContext(), requestCode, resultCode, data); addCoverImage.setImageBitmap(bitmap); }

I'm goin to the gallery but when I come back it is null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions