# PollingLooper **Repository Path**: Tor_S/PollingLooper ## Basic Information - **Project Name**: PollingLooper - **Description**: Android轮询框架 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-01-04 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [参考](https://juejin.im/post/5c2e0e1ae51d454671452864?utm_source=gold_browser_extension) #### 1、IntentService IntentService是一种特殊的Service,继承了Service并且是一个抽象类,必须创建它的子类才能用。 IntentService可以用于执行后台耗时的任务,当任务执行后会自动停止,IntentService的优先级比一般的线程高,比较适合执行一些优先级高的后台任务。 #### 2、PendingIntent PendingIntent是延迟的intent,主要用来在某个事件完成后执行特定的Action。 PendingIntent包含了Intent及Context,所以就算Intent所属程序结束,PendingIntent依然有效,可以在其他程序中使用。 PendingIntent一般作为参数传给某个实例,在该实例完成某个操作后自动执行PendingIntent上的Action,也可以通过PendingIntent的send函数手动执行, 并可以在send函数中设置OnFinished表示send成功后执行的动作。