Hi, I have some code in place that checks for if the screen has been re orientated which works fine.
But its what I do after that that seems to be a pain.
if I put an if statment in that stops any methods that would normally be trigged on the oncreate method my screen is empty on rotation.
if I try to just reinflate the view, that doesn't work because I havent saved the data that it displays to singleton.
It basically seems like I have to save my individual vars to a singleton then if the screen reorientates use them... But then that seems really crude and crappy stuff like if you scroll down the viewlist the position is refreshed to the top when you reorienate..
What Im doing basically just doesnt seem right?
Their must be some other easier better way to do this?
But its what I do after that that seems to be a pain.
if I put an if statment in that stops any methods that would normally be trigged on the oncreate method my screen is empty on rotation.
if I try to just reinflate the view, that doesn't work because I havent saved the data that it displays to singleton.
It basically seems like I have to save my individual vars to a singleton then if the screen reorientates use them... But then that seems really crude and crappy stuff like if you scroll down the viewlist the position is refreshed to the top when you reorienate..
What Im doing basically just doesnt seem right?
Their must be some other easier better way to do this?