I am developing a simple tool to assist in one aspect of a game I play on Android by automatically logging instances of a certain event. The tool is a kind of tally counter which floats over the display such that the tally can be modified while the game is being played.
When the event occurs in the game, the screen briefly flashes white. I believe that if I can detect this, I can use it to log the event automatically.
However, as the tool is a separate application and does not interact with the game programatically (indeed, as far as I know the game has no hooks for such interaction), I think the way I'll need to do this is to have my floating service "look beneath" itself to the window it's floating on top of.
Is there a way for me to detect properties of what is being displayed at any given frame, such that I can key logic in my tool off of "when the screen flashes white"?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…