How to save current level?

I am making a game and I cannot figure out how to save the current scene/level. Like once the player has passed the level if you exit and come back in you can still access that level. I looked into player prefs (Link to player prefs) and I am not sure if that will work on android. Answers appreciated thanks!

I figured this out using the player prefs. You have to use the PlayerPrefs.SetInt(); and PlayerPrefs.GetInt(); according to the levels that you want to save.