Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
405 views
in Technique[技术] by (71.8m points)

android - Detect property (eg pixel colour) of currently displayed image in separate application

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"?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...