Dragon City automatically saves your progress on your device while playing with a stable internet connection.
In order to ensure your progress is not lost, especially when switching devices, it is advised to connect your account to a Facebook profile, Google Play account, or Game Center account.
To do so, tap on the 'Settings' icon in the top right corner of your Dragon City screen.