How to start new service in run() of Thread?
<p>How To start new service in Thread...
Thread is running continuously but the startservice() method in run() is not gets started...
Please Help Me.</p>

<p>The code is as follows.....</p>

<pre><code>package com.example.demo;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

public class Act extends Service {
/** Called when the activity is first created. */
@Override
public void onCreate() {
super.onCreate();
Toast.makeText(Act.this,"In On Create",Toast.LENGTH_SHORT).show();
Intent i=new Intent(getApplicationContext(),HelloService.class);
startService(i);
Toast.makeText(Act.this,"In End Create",Toast.LENGTH_SHORT).show();
updateTimeTask.start();
}

private Thread updateTimeTask = new Thread() {
public void run() {
    Intent i=new Intent(getApplicationContext(),HelloService.class);
    startService(i); //This Service not gets started
}
};

@Override
public IBinder onBind(Intent intent) {
    // TODO Auto-generated method stub
    return null;
}
}
</code></pre>
