4 activity, main, addnew, show, oneother.
then i go from main to addnew, make changes in database via php to mysql, and go back to
main (startactivity(main)) it goes back to main activiey and then few seconds goes back to addnew
activity..
tries everything i could find but still no fix.
any help would be appreciated.
thanks paul
thanks for the help.
from the main activity to the addnew activity i use 'StartActivity("addnew")'
returning back from the addnew activity to the main activity i am using 'StartActiviey("Main")'
i have also tried from addnew activity to Main activity 'CallSubDelayed2(Main, "GetResult", Value)'
and it still once gets to the Main acitivity then a few seconds goes right back to the
'addnew' activity.
You should not use StartActiviey(Main) in the addnew activity.
Clicking on the Back button when you are in addnew activity will return automatically to Main.
If you want to go from addnew to show then you must use StartActiviey(show).
Then, if you want:
- Main > addnew > show > addnew > Main
This is the behaviour with the back button and no call to a previous avtivity nor with Activity.Finish.
- Main > addnew > show > Main
Here you need to add Activity.Finish in the Activity_Pause routine in the addnew activity and eventually in the show activity.
If you don't use Activity.Finish clicking on the Back button the program goes back to the previous activity.
If you add Activity.Finish in an activity then this activity is removed form the return list.
OK OK, found out what my problem was, i was sending it back to main before 'Job.Release' and when it go to main it to
return of other module to finish up.
This also was giving me another issue and by moving the command after the Job.Release it works great.