My application should load some data when it start at first time, but it should do not load again when it resumes, when I do that loading on onCreate methods, if user changes orientation, that process do again, I do not want this, I need to run loading only once, is there any way to fix it?
My application should load some data when it start at first time, but it
Share
It’s really simple! Just put:
android:configChanges="keyboardHidden|orientation"in the
AndroidManifest.xmlfile inside activity tag in which you require such functionality.Example: