OnActivityResult is not calling in fragment

Published

I have to select images, for that I’m using a library FishBun

https://github.com/sangcomz/FishBun

In an Activity screen it is working fine and I’m able to get URI‘s in onActivityResult

But, in Fragment onActivityResult is not being called. I have not intent to call startActivityForResult

When button click – the following method will call

FishBun.with(xactivity)
    .setImageAdapter(new CoilAdapter())
    .setMaxCount(15)
    .setMinCount(1)
    .setAlbumSpanCount(1, 2)
    .setActionBarColor(Color.parseColor("#000000"), Color.parseColor("#000000"), true)
    .setRequestCode(UIKitConstants.RequestCode.MULTI_IMAGE)
    .startAlbum();

How to get result? Please help me on this

Source: Android Questions

Published
Categorized as android, fragment, onactivityresult

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq