Android M onRequestPermissionsResult in non-Activity
<p>I have an application which needs to find the user <strong>location</strong>, and location is fetched in various classes, so i have written a separate class(Not an Activity class) that fetches user location using <strong>location services</strong>, it works fine under <strong>Android M</strong> but requires run time permissions in <strong>Android M</strong>, i want to check permissions in my Location class and i know how to check them but i cannot use <strong>onRequestPermissionsResult</strong> method in my Location class, because my Location class do not extends from any activity.</p>

<p>So What i should do for achieving this? any help/clue is appreciated
Thanks in advance</p>