I am working on a game application. But there is some problem to get background color base on build drawing cache with fix "X" and "Y" coordinate.
My code is like this..
mainRelativeLayout.buildDrawingCache();
Bitmap bitmap = mainRelativeLayout.getDrawingCache();
int color = bitmap.getPixel(200,320);
Log.e("color", "" + color);
but it return null pointer exception on color.