title: Android: how to make a method of getting something from a service with onActivityResult()?
body: <p>I'm trying to make a method that can return a result from service
  Problem is this :</p>
  
  <pre><code>public int getResult{
      int result;
      //I'm sending request with PendingIntent here, but here I don't have my variable returned
      return result;
  }
  public void onActivityResult (int requestCode, int resultCode, Intent data) {
      //because a result from a service comes here and i can't put it in a previous method - that's a problem for me 
  }
  </code></pre>
  
  <p>Is there any idea of making int getResult method that will not only send request but will return a result as well?</p>