Multiple Bitmap update on same android SurfaceView
问题 Recently I tried to write an app which captures frame buffer from say USB camera (that need to be displayed as preview), and image processed output that need to be overlapped on the preview. Can anybody give me some pointers how to start? Moreover I need to draw some rectangle on the preview. I was trying to use multiple SurfaceView to draw but not succeeded. Can anybody help me out? 回答1: What you need it the bitmap and image view reference counting. Android keeps image data in native array,