How to make Intentservice repeating a job?
<p>I have intentservice that notify when found value in myDataBsae but if data is null should not  notify me ,so </p>

<ol>
<li>How can I make my Intentservice check content of myDataBase every 50 second (I used AlarmManager but my service notify me every 50 second in spite of my database = null ,  )? </li>
<li>I want my intentservice work separately thread , when I triggering  it</li>
</ol>

<p>my service is :</p>

<pre><code>    public class ShowTimeServer extends IntentService  {
NotificationManager nm;
static final int uniqueID=326534;
public ShowTimeServer() {
    super("ShowTimeServer");
    // TODO Auto-generated constructor stub
}

/* (non-Javadoc)
 * @see android.app.IntentService#onHandleIntent(android.content.Intent)
 */
@Override
protected void onHandleIntent(Intent arg0) {
    // TODO Auto-generated method stub

    ShowTimeDB RetrieverDB =new ShowTimeDB(this);
    RetrieverDB.open();
    String data = RetrieverDB.getShowNotify();
    RetrieverDB.close();



    if (!(data.equals(null))){

        nm=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);

        Intent intent=new Intent(this,TodayShow.class);
        PendingIntent pi= PendingIntent.getActivity(this, 0, intent, 0  );
        CharSequence x=(CharSequence) data;
        Notification n=new Notification(R.drawable.ic_launcher,"YOU HAVE SHOW" ,System.currentTimeMillis());
        n.setLatestEventInfo(this, "ShowTime", x, pi);
        n.defaults=Notification.DEFAULT_ALL;

        nm.notify(uniqueID,n);
        //pi.cancel();
        //nm.cancel(uniqueID);

    }
}

}
</code></pre>
