Blocking Apps

Hi, I am trying to create an app that blocks the usage of other apps until a certain requirement is met. How would I go about this and are there any specific libraries or functions I should be looking at?

Blocking Apps
 
 
Q