my app allows user to change screen orientation according to preference. no problem.
user can update (via a download) some files from within app. no problem.
but, if user changes screen orientation during file download, things start to go wrong.
i would like to turn off screen orientation temporarily (ie, ignore it) just before the download starts, and then turn it back on after the download has completed. how can i do this?
i'm guessing i could do the download in the background (i think that's a way around android's restarting the app - i could be wrong on that), but i would prefer some kind of simple enable/disable switch that doesn't provoke a restart.
thanks in advance
-go
user can update (via a download) some files from within app. no problem.
but, if user changes screen orientation during file download, things start to go wrong.
i would like to turn off screen orientation temporarily (ie, ignore it) just before the download starts, and then turn it back on after the download has completed. how can i do this?
i'm guessing i could do the download in the background (i think that's a way around android's restarting the app - i could be wrong on that), but i would prefer some kind of simple enable/disable switch that doesn't provoke a restart.
thanks in advance
-go