title: Stop a Service from activity
body: <p>I'm using a service in my application but i run it by taking an object from it,as i'm passing activity context to it, so i wanna know how to stop this service from the activity</p>
  
  <p>My Service</p>
  
  <pre><code>public class Tracker extends Service implements LocationListener 
  </code></pre>
  
  <p>How i start it </p>
  
  <pre><code> T1=new Tracker(MainActivity.this);
  </code></pre>
  
  <p>i tried </p>
  
  <pre><code>T1.onDestroy()
  </code></pre>
  
  <p>also in my service defined</p>
  
  <pre><code>   public void Close()
  {
      this.stopSelf();
  }
  </code></pre>
  
  <p>and called it from main </p>
  
  <pre><code>T1.Close();
  </code></pre>
  
  <p>but it's still running</p>