Activity_Pause and httputils

MarkP37

New Member
Licensed User
Longtime User
Hello, Hope someone an give some advice.

I use Activity_Pause and Activity_Resume to save and retrieve screen setting.

In a button click event I disable various buttons on the screen, then call httputils to retrieve some info, then enable the buttons after the http call is finished and continue processing.

Note: Different buttons may disabled and enabled depending on the user and where the program is logically.

This works fine until the Activity_Pause is called before the http call is finished.

When the program Resumes, the buttons are disabled.

Is there a way to delay the Activity_Pause until the http call is completed.

How would you handle this problem.

Mark.
 
Top