UK Prime Minister David Cameron has warned against Islamic extremism and praised Indonesia as living proof that Islam is compatible with democracy.

Speaking to students in Jakarta on the latest stop of his trade mission to South East Asia, he said extremists only wanted to impose a particular and radical version of Islam on society.