Answer
Ceded by his brother, Andrew II inherited the throne after his brother, King Emeric, agreed to relinquish the lands to prevent their division, ensuring a peaceful transition of power and maintaining the integrity of the realm. This act demonstrated Andrew's commitment to familial harmony and the preservation of his kingdom's unity.