I want to take a picture by pressing an item inside a RecyclerView
. If I do ((MainActivity)context).startActivityForResult
, onActivityResult
in Activity will be called.. How to call it inside the Fragment
holding the Adapter
?
I know I can just pass the fragment inside the adapter. But I'm concerned about the memory usage.