Programatically setting screen to fullscreen or not

MDEnt

Member
Licensed User
Longtime User
I currently have the IDE set to fullscreen, but I'm wondering what the correct syntax would be to set fullscreen or not for an activity in code instead.

Thanks.
 

Gargoyle

Member
Licensed User
Longtime User
You can try to call Activity.Finish followed by CallSubDelayed("", ...) (or StartActivity). It should destroy the activity and then create it again.

Could you (or anyone) post an example which is just a button that when pressed toggles FullScreen and then closes the activity then restarts it again, so the Activity.Height is re-adjusted to correct dimension.

No matter how I jiggle the calls, the Activity isn't recreated/restarted.

If it works for anyone else, hopefully It will work for me (eventually?).
 

Attachments

  • ReCreate.zip
    6.2 KB · Views: 352
Upvote 0
Top