读书人

怎么触发IntentService的onHandleInte

发布时间: 2014-01-19 01:28:51 作者: rapoo

如何触发IntentService的onHandleIntent的调用?
IntentService里有onHandleIntent方法,如何触发它被调用?

[解决办法]
startservice就可以传递到这来了吧。
[解决办法]
sdk里写的很清楚:
To use it, extend IntentService and implement onHandleIntent(Intent). IntentService will receive the Intents, launch a worker thread, and stop the service as appropriate.

http://1028826685.iteye.com/blog/1485800
参考,里面有代码。

读书人网 >Android

热点推荐