The concept SurfaceFlinger
and Framebuffer
is a low level concept in Android system. In application level, which built on framework, these concepts are opaque.
As Bitmap
, it's not very necessary if you just change the background color.
You can just simply do like following in your Activity
.
getWindow().setBackgroundDrawableResource(R.color.color_res_id);
// or change the root view background
getWindow().getDecorView().setBackgroundResource(R.color.color_res_id);
If you are novice in Android app development, you can start reading the training here, it's a good source for beginner to start.