title: Stop Previously running thread which was created in previous class in android
body: <p>I just need to stop a thread which was created in previous run time of the same application. This is the scenario. I'm retrieving data from database for the notification using thread in background, But when I start that application again, number of threads are increasing. I need to stop this. I think its better to stop the background running thread in onCreate() method of the application's main class. But noway to do it. Please help me on this thing as soon as possible.</p>
  
  <p>Thanks and Best Regards,
  Shehan.   </p>