How to auto save for android games (Clicker Games)

Hi, im new here. So ive been making a game similar to cookie clicker and i want to make it auto saving where when the player exit the game, the game automatically save. Can anyone help me with this?

PC or app ???

its for android game