Hey i am making application which has tow screens. In the first screen i have button1 when it is clicked a progress dialog shown (as shown in below image) and a value from tiny web db starts getting.
When tiny web db got value it will show the got value in a label and progress dialog is dismissed. After there is another button2 when it is clicked a another screen is opened called screen2. Then when the user back press on screen2 the screen2 closes and user gets back to first screen, I have used the “Close screen block” to close screen2 and getting back to first screen as shown in below image
Then getting back from screen2 to first screen again if i click button1 to get value then it shows this error as shown in below image
I think by using “close screen block” to get from screen2 to first screen is causing error in progress dialog to show and that’s why it shows run time error.
Yes I have tried this method. but, using this when the screen1 opens correctly but, everything or function starts again from the starting point but don't want this to happen i want to keep all function at that same point when coming back from screen2