0

i want to have simple pop up after start of my app where users can choose from languages of the app (which should use different xmls)

after first chose it should not appear on next run of app and it should be changeable from settings button.

I am an Android dummy and realy need it, thanks much

Atukamix
  • 71
  • 1
  • 6
  • Have you tried anything yet? – codeMagic Apr 29 '13 at 17:10
  • i dont know hot to make any pop-up, after that i know that it should use sharedpreferences, which last time didnt work for me etc.. :D – Atukamix Apr 29 '13 at 17:13
  • Have you [searched](http://stackoverflow.com/questions/2115758/how-to-display-alert-dialog-in-android)? And, yes, sharedprefs. Give it a try and post what isn't working – codeMagic Apr 29 '13 at 17:15

1 Answers1

0

Use shared preference for this eg:-

private SharedPreferences mPreferences;
boolean firstTime = mPreferences.getBoolean("firstTime", true);
if (firstTime) { 
SharedPreferences.Editor editor = mPreferences.edit();
editor.putBoolean("firstTime", false);
editor.commit();
SelectLanguge();
}
Sujith
  • 7,543
  • 1
  • 28
  • 38