What's the best way to check for permissions at runtime using MVP architecture?
I'm developing an android app in which I have to ask for permissions at runtime. I'm wondering about the best way to implement that using Model-View-Presenter architecture. My initial thought was to have the presenter call a component responsible for permissions(say a PermissionHandler ), and update view accordingly. The issue is that the code to check for permissions is tightly coupled with the Activity class. Here are some of the methods involved that require an Activity or Context: ContextCompat.checkSelfPermission() ActivityCompat.shouldShowRequestPermissionRationale() ActivityCompat