Methods Summary |
---|
public android.os.IBinder | onBind(android.content.Intent intent)
return null;
|
public void | onCreate()
super.onCreate();
HandlerThread thread = new HandlerThread("IntentService[" + mName + "]");
thread.start();
mServiceLooper = thread.getLooper();
mServiceHandler = new ServiceHandler(mServiceLooper);
|
public void | onDestroy()
mServiceLooper.quit();
|
protected abstract void | onHandleIntent(android.content.Intent intent)Invoked on the Handler thread with the {@link Intent} that is passed to {@link #onStart}.
Note that this will be invoked from a different thread than the one that handles the
{@link #onStart} call.
|
public void | onStart(android.content.Intent intent, int startId)
super.onStart(intent, startId);
Message msg = mServiceHandler.obtainMessage();
msg.arg1 = startId;
msg.obj = intent;
mServiceHandler.sendMessage(msg);
|