can we call startActivityForResult from adapter?
问题 is it possible to have method onActivityResume within adapter & call startActivityForResult ? 回答1: Yes. Just pass the context of the activity to the adapter in the adapter's constructor (here stored as mContext). In getView, just call ((Activity) mContext).startActivityForResult(intent,REQUEST_FOR_ACTIVITY_CODE); 回答2: Not necessarily pass to pass context in adapter's constructor. You can get context from parent ViewGroup. Sample for RecyclerView adapter: Context mContext; @Override public