title: Passing Activity to non-activity object properly
body: <p>In my app ive got a non-activity object which it's role is being a manager class.
  many times i need to pass "source activity" to methods as parameter to that manager class in order to make some operations on that activity.</p>
  
  <p>for example let's assume we have MyActivity which gotta do some toast.
  so i have this manager class called MyManager, and i have this method in it</p>
  
  <pre><code>raiseToast(Activity sourceActivity) {
  
    Toast.makeText(sourceActivity, demo, Toast.LENGTH_LONG).show();
  }
  </code></pre>
  
  <p>and from Myactivity class we calling that method this way:</p>
  
  <pre><code>MyManager manager=new MyManager();
  manager.raiseToast(MyActivity.this);
  </code></pre>
  
  <p>it works fine.</p>
  
  <p>what I'm asking here, is this a proper way to pass an Activity as parameter to a non-activity object?
  I'm having a memory leaks on real device(not the emulator), I wonder if this could also causing any reason for that?</p>
  
  <p>Thanks Idan.</p>