I need to implement an app that user can only use it before some date, example: 31/12/2017. I think I will implement it on onResume() function of every activity to prevent user run the app in the memory and never kill it.

Currently, I have 6 activities, add code to each activity is acceptable, but when an application becomes larger, this way is very stupid. How can I improve it?