Calculation after getting Longitude value

Hi, I have an app which displays a calcualted value on screen intialization, location sensor supplies longitude value which is used in complex formula.
Problem:
When screen intializes, longitude value in emulator and android device do not loads immediately and 0 is feed as longitude in calculation. This results in wrong final value. How can I delay the calculation that it displays final calcuated value when actual longitude values got loaded from location sensor?

image

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.