M MDEnt Member Licensed User Longtime User Feb 7, 2012 #1 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.
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.
G Gargoyle Member Licensed User Longtime User Sep 22, 2012 #21 Erel said: You can try to call Activity.Finish followed by CallSubDelayed("", ...) (or StartActivity). It should destroy the activity and then create it again. Click to expand... 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 ReCreate.zip 6.2 KB · Views: 583 Upvote 0
Erel said: You can try to call Activity.Finish followed by CallSubDelayed("", ...) (or StartActivity). It should destroy the activity and then create it again. Click to expand... 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?).
Erel B4X founder Staff member Licensed User Longtime User Sep 22, 2012 #22 My mistake. You will not get the correct height with this method as it always runs after the height is calculated. Upvote 0
My mistake. You will not get the correct height with this method as it always runs after the height is calculated.
G Gargoyle Member Licensed User Longtime User Sep 22, 2012 #23 Erel said: My mistake. You will not get the correct height with this method as it always runs after the height is calculated. Click to expand... Thanks for that, you've now saved the last few hairs on my head. Upvote 0
Erel said: My mistake. You will not get the correct height with this method as it always runs after the height is calculated. Click to expand... Thanks for that, you've now saved the last few hairs on my head.
Erel B4X founder Staff member Licensed User Longtime User Sep 22, 2012 #24 I don't remember whether I already suggested it but you can use two activities. One full screen and one regular. You can put all the code in a class and then use it from both activities. Upvote 0
I don't remember whether I already suggested it but you can use two activities. One full screen and one regular. You can put all the code in a class and then use it from both activities.