how to handle api call on rotation change in android? : Please help with these problems
1)In my app i have both portrait and landscape screens. I know how to handle data using view model or saved instance state. I have 7 api calls on one activity but when i rotate screen api call stops in between so is there any trick to rotate screen after last api call success so i have all data stored in view model or something helpfull.
2)Example- if its login screen user enters id password and clicks login button on screen rotation api call stops and user halts on same screen.