I want to Rotate Image according to a specific angle in android ,some thing like a compass...
I have this code...it works on drawPath() but i want to replace the pat
You have to rotate the canvas first and then draw whatever you want. Then the object drawn will be appeared as rotated on screen.
canvas.rotate(45); // degrees to rotate
try this its good way.
Check this tutorial you will get information about how to draw bitmap and how to rotate canvas
Check complete tutorial