title: How to use onActivityResult method from other than Activity class
body: <p>I am creating an app where i need to find current location of user . </p>
  
  <p>So here I would like to do a task like when user returns from that System  intent, my task should be done after that.(Displaying users current location)</p>
  
  <p>So i am planning to use <code>OnActivityResult()</code>.</p>
  
  <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent data) {
  
  }
  </code></pre>
  
  <p>But the problem is that I don't know how can I use that method in a class which is not extending Activity.</p>
  
  <p>Please some one give me idea how can i achieve this?</p>