R ronovar Active Member Licensed User Longtime User May 1, 2016 #1 I have 5 Activities...when user press OK button on Item 1 i call Code: Copy StartActivity(Item1) When user press BACK key on remote controll then i call: Code: Copy Activity.Finish Some time when user press OK to StartActivity(Item1) apk starts Main Activity because Activity Item1 does not get populated all variables from server responde. I try DoEvents but it is same. How to prevent to start Main Activity From Item1 Activity if Activity does not get all variables populated from server?
I have 5 Activities...when user press OK button on Item 1 i call Code: Copy StartActivity(Item1) When user press BACK key on remote controll then i call: Code: Copy Activity.Finish Some time when user press OK to StartActivity(Item1) apk starts Main Activity because Activity Item1 does not get populated all variables from server responde. I try DoEvents but it is same. How to prevent to start Main Activity From Item1 Activity if Activity does not get all variables populated from server?
Erel B4X founder Staff member Licensed User Longtime User May 2, 2016 #2 I'm not sure that I fully understand the problem. Sounds to me that you need to move the communication code to a service. This will allow you to decide whether to start the activity or not. Upvote 0
I'm not sure that I fully understand the problem. Sounds to me that you need to move the communication code to a service. This will allow you to decide whether to start the activity or not.
R ronovar Active Member Licensed User Longtime User May 2, 2016 #3 I im using Activity Module not Service Module...because in Activity Module i have added labels panels imageviews bbitmaps and json code to parse from server....how can i add thease items in Service Module? Upvote 0
I im using Activity Module not Service Module...because in Activity Module i have added labels panels imageviews bbitmaps and json code to parse from server....how can i add thease items in Service Module?
Erel B4X founder Staff member Licensed User Longtime User May 2, 2016 #4 Service cannot show any UI. It is not exactly clear to me what your code is doing, however if you make any http requests then it is better to make them on a service and then the response will not be affected by the current running activity. Upvote 0
Service cannot show any UI. It is not exactly clear to me what your code is doing, however if you make any http requests then it is better to make them on a service and then the response will not be affected by the current running activity.