Android Snippets: ActionBar

Hey, fellow Android Developers and especially the junior ones! In this article as like in the following ones, I will share with you useful snippets of code. 🙃 This article will be on-going or

Easy way to detect when your app is going to be killed

Recently I needed a way of detecting when the app is going to be killed and execute some operations. Here is a really easy solution by using an IntentService: class AppKilledDetectingService: IntentService("AppKilledDetectingService"