During the Austro-Turkish War, Davidovich talked the Turkish governor of Šabac into surrendering in 1788. He assisted Maximilian Baillet de Latour in stamping out the 1789 Belgian revolt and was elevated to the rank of General-Major in 1790.