P Pat Fahey Member Licensed User Longtime User May 30, 2017 #1 I start my app with the loadlayout but it seems delayed (Nothing Showing) until the other activities are completed. I do a download from the internet and it can take some time all with a blank screen. Is the loadlayout async and we need a pause to allow it to complete?
I start my app with the loadlayout but it seems delayed (Nothing Showing) until the other activities are completed. I do a download from the internet and it can take some time all with a blank screen. Is the loadlayout async and we need a pause to allow it to complete?
Erel B4X founder Staff member Licensed User Longtime User May 30, 2017 #2 LoadLayout is not async. However the interface will only be updated after the main thread is free to process the message queue. Assuming that you are downloading with OkHttpUtils2 then it shouldn't affect the layout. Can you post the code in Service_Create of the starter service and Activity_Create of the main activity? Upvote 0
LoadLayout is not async. However the interface will only be updated after the main thread is free to process the message queue. Assuming that you are downloading with OkHttpUtils2 then it shouldn't affect the layout. Can you post the code in Service_Create of the starter service and Activity_Create of the main activity?