The first official trip to India by the new Maldivian president warmed previously tense relations between the two South Asian nations.