1

Rendering Bitmap on SurfaceView impacting performance

view story
linux-howto

http://stackoverflow.com – I have an activity which extends SurfaceView (Android application API level 8). Need to draw bitmap to background instead of simple color. I was able to draw the bitmap on canvas -->using the commented code in void render(Canvas canvas), but it makes to performance too low. Rendering becomes to slow if we use bitmap, however if we just drawcolor then everything is fine. Is there issue with the code? How can we set the background image without affecting the performance? public class MainGamePanel extends SurfaceView implements SurfaceHolder.Callback { public void render(Canvas canva (HowTos)