I have this Android app that's localized in several languages. If the appropriate string for the device's locale exists, the app automatically displays it. So far, so good.
Next, I want to allow the app's users to switch to one of the languages I've provided. I can do this by overriding the default locale. No problem here, either.
The question here: Is there a way for me to provide a "default" option in the language list that would allow users to restore the default, automatic locale? Consider the following scenario:
1. Device's locale is set to German. App displays everything in German.
2. User wants the app to be in French, so they change the language from inside the app, and the app turns French as a result.
3. The same user changes the device's locale to Spanish. App is still French.
4. They select the "Default" setting. The app changes to Spanish, and keeps changing when the locale is changed.
If this isn't doable automatically, then is there a way for me to get the device-wide locale so that I can set my app to it if my "default" option is selected?