title: Android - Stop a Service from a different class
body: <p>In the application i'm making I want to start an intent in one activity</p>
  
  <pre><code>Intent toonService = new Intent(Login.this, ToonService.class);
  toonService.putExtra("toonName", result.getName());
  Login.this.startService(toonService);
  </code></pre>
  
  <p>Will the following code close the intent i just opened? If not how can i get it to?</p>
  
  <pre><code>Intent toonService = new Intent(MainActivity.this,ToonService.class);
  MainActivity.this.stopService(toonService);
  </code></pre>
  
  <p>the second piece of code would be called at a time completly unrelated to the first piece of code.</p>