Android Service

Android Foreground Service Example

Android foreground service is an android service object. But it always run in foreground, this can avoid service object being recycled by android system when android os do not have enough resources. Android foreground service can be interacted by user through notification.  It is generally used in music player, file downloader etc.