I got it, actually onPaint is getting called every frame, I just need to put the logic in that function only and it will wok.
Thanks for the wonderful resource.
I got it, actually onPaint is getting called every frame, I just need to put the logic in that function only and it will wok.
Thanks for the wonderful resource.