Android-MVP-Sample-Application icon indicating copy to clipboard operation
Android-MVP-Sample-Application copied to clipboard

Orientation handling

Open KingIdee opened this issue 8 years ago • 4 comments

If I perform a network operation and I rotate the screen, it restarts the operation. Any cure to this?

KingIdee avatar Sep 11 '17 08:09 KingIdee

Check this project for screen-orientation handling.

amitshekhariitbhu avatar Sep 11 '17 08:09 amitshekhariitbhu

I meant for MVP not MVVM

KingIdee avatar Sep 11 '17 11:09 KingIdee

Hi! I meant handling orientation in an MVP architecture.

KingIdee avatar Sep 15 '17 19:09 KingIdee

Yes we can use loaders for performing network operation in background and if we rotate the device then it will not reload or redo the network operation. i can do this using AsyncTaskLoader

Sagar0-0 avatar Sep 30 '21 10:09 Sagar0-0