Can anyone help me with some advice. I want to create an App that is loaded and then left running while other apps are loaded. I then want it to monitor what is output to the smartphone screen and when it recognises a particular pattern or logo being displayed to do something?

Anyone know if this Is possible on iPhone or Android?

Anyone know how to do - hopefully with javascript?