Hi Yurii,
Thanks for your support.I have applied the above events in the page load event.But my problem is still there.I am describing you the complete scenario-
i)I have a login page and after successful login the application goes to landing page.
ii)After successful login I have set a flag.
iii)Next time when the application resumed/restarted the flag has been checked and if the flag is true the application will navigate to landing page other wise it will be in the login page.
By the above logic we have achieve the scenario that the user will login only once in the application after installing the .apk file.
Now suppose when I am using the application,minimize it(but the application is in background)and use some other application and then again resume the application from background it is working fine.
But if I minimize the application and remove from background and again restart it from mobile menu,the application is behaving unexpectedly.
First the landing page appears(its expected),but certainly after that the login page appears(not expected) and after that again the landing page appears.These all events occurs within a few seconds.
Please help.