how to display progress of service in android -


In my Android application, I am using tabs view and so I have two tabs: Parameters and results.

The user enters various parameters on the first tab and then goes to the second tab to see the results.

I have a service that calculates something that the user enters into the parameters on the first tab and hits 'calculate' they can make adjustments and affect 'recalculation' And the service is updated with the new parameters.

As these calculations progress, I want the user to be able to switch to the tabs of the results. They will see results after the latest calculation and make adjustments to switch back to the parameters tab.

I can think of two ways:

- Register with the 'Results tab' service and when the service reaches a milestone, then it will be directly 'results Tab '.

- There is a timer running in the 'Results tab' and it is a query against the bound service at regular intervals and update accordingly.

Do people have comments or recommendations for both of these approaches?

There is a published progression method which will push it from your background work to the UI thread, Should not be pathetic in


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -