This is a follow up to my previous question: How to Start an Intent from a contained class of an Activity
Basically, I realized that I need to call startActivityForResult
(and not startActivity
) from a contained class of an Activity. The answer from the previous question passed the Context from the Activity class to the contained class. However, the context alone isn't enough to call StartActivityForResult
.
What is the best way to do this? Do I have to pass the entire Activity Class to the method in the contained class?