I'm developing an app that draws a circle into an image when the user touch the screen, and also the user can move this circle moving the finger over the screen. But in the action of move, I can see a lot of lag...
The user open an image of this gallery, and after that, what I do is:
1)the user touch the screen
2)calculate de correspondence between screen-point and image-point (+100ms)
3)drawing:(+200ms)
-create a bitmap with the size of the original image
-create a canvas based on the previous bitmap
-canvas.drawimage, draw the original image
-canvas.drawcircle, draw the circle
4)set the result bitmap to an imageview(+100ms)
Every time that the user move his finger, I waste 400ms doing all the process...a lot of time
I know that the resolution of the image it's very important, but I'm using a 640x480 image ...so it's not a very very big image...and I am testing my app in a samsung galaxy s2, so I was specting better results...