I want to have a smooth compass rotating in GoogleMap. I have created default GoogleMap project using Android Studio. I add the following to enable location and compass.
map.setMyLocationEnabled(true);
map.getUiSettings().setMyLocationButtonEnabled(true);
map.getUiSettings().setCompassEnabled(true);
But the compass doesn't update smoothly; updates once after about 10 seconds. Can you tell me how to fix this?