Reputation: 1138
I have a MainActivity
wherein I am inserting a fragment over it.
In fragment there is EditText
, Button
,TextView
, ImageView
.
When i enter some text in EditText
it shows the same in TextView
. And when i click on profile-image default Icon(Image View) it asks us to upload image from sd card and sets that as Profile Image.
Before clicking on submit button if i go to settings and change the language to say Japanese then after coming back to my app does not refresh the same using Japanese text. And even image uploaded but not saved also disappears.
I have values-ja
for the Japanese script.
I read about onConfigChanges
method in Activity
. I tried that also but that method is also not getting called.
Upvotes: 0
Views: 7826
Reputation: 176
I think you should read those article, then you can solve your problem
How to refresh activity after changing language (Locale) inside application
Changing Locale within the app itself
Upvotes: 1