Don't want activity to be destroyed/created when phone is rotated.

Posted by alex2k8 on Stack Overflow See other posts from Stack Overflow or by alex2k8
Published on 2010-04-18T18:39:44Z Indexed on 2010/04/18 18:43 UTC
Read the original article Hit count: 213

Filed under:
|

I have tried to freeze orientation

setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

but thought screen stays in portrait orientation, the activity is still recreated. Any ideas how to solve this?

© Stack Overflow or respective owner

Related posts about android

Related posts about screen-orientation