I want to get the color of one pixel of screen
A:
Perhaps you can use this? Returns the Color at the specified location
.
Learn to use the Google. First result for "android get pixel color".
Daenyth
2010-07-28 19:52:39
That's for a bitmap, not the screen; though you could probably somehow capture the screen as a bitmap..
Andy Zhang
2010-07-28 20:41:20
@Andy, your answer reminds me of this comic - http://i.imgur.com/moMT9.png ;)
Hamy
2010-07-29 05:29:41
@Daenyth, Perhaps you can use [this](http://stackoverflow.com/editing-help)? `A Blockquote is not the same as Code`. Learn to chill a bit, it's his first question and everyone already got mad @ the OP for the caps.
Hamy
2010-07-29 05:36:12
A:
Sorry you can't do this. The screen is not readable at all by applications.
hackbod
2010-07-29 02:19:33
hack, can you back this up with some references? Not doubting you, just curious to know more about this. Seems like trying to access `Surface` aka http://d.android.com/reference/android/view/View.html#View(android.content.Context, android.util.AttributeSet) would be a good place to start trying to do this? Perhaps not though . . . ? What say you? :)
Hamy
2010-07-29 05:24:35