title: Service does not restart after being killed , even after Return_STICKY
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6254161/how-to-keep-service-running-after-force-stop">How to keep service running after force-stop?</a>  </p>
  </blockquote>
  
  
  
  <p>Hi this is the piece of code i am using to create a service.
  The service is tried to manually stop in settings -> manage apps -> running services
  Even after Returning-Sticky .... Service Does not Restart.
  Please Help. Any help will be appreciated</p>
  
  <p>The Code is :</p>
  
  <pre><code>public class MyService extends Service {
  private static final String TAG = "MyService";
  
  @Override
  public void onCreate() {
      Toast.makeText(this, "My Service Created", 0).show();
  }
  
  @Override
  public void onDestroy() {
      Toast.makeText(this, "My Service Stopped", 0).show();
      Log.v(TAG, "onDestroy");
  }
  
  public int onStartCommand(Intent intent, int flags, int startId) {
  
      Toast.makeText(this, "On Start Command - service started", 0).show();
      Log.v(TAG, "onStart");
      **return START_STICKY;**
  
  }
  
  @Override
  public IBinder onBind(Intent intent) {
      return null;
  }
  
  }
  </code></pre>
  
  <p>Please help..</p>