title: How to keep app language setting after device restart?
body: <p>My app has a language setting feature. Now it works perfectly, but after I restart the device, the language reverts to the original setting. </p>
  
  <p>Does anyone have any ideas? Do i need to implement <code>SharedPreferences</code>?</p>
  
  <hr>
  
  <p>I got the answer. If you have Language setting inside your app. and after restart device the last language you've changed still be default. One of the way to make this work, to store variable   through <code>SharedPreferences</code> ; might be <em>String language</em>.</p>
  
  <p>Another thing, you need to have is initiate class. so that, whenever you open app. it able to call. </p>
  
  <p>For example</p>
  
  <p><code>Setting appSettings = Setting.getInstance(getApplicationContext());</code> </p>
  
  <p><code>language = appSetting.getLanguage();</code></p>
  
  <p><code>appSetting.setLanguage(language);</code></p>