J JNG Member Licensed User Jan 16, 2017 #1 Hi Need to understand weather the following process can be applied. for example i have three activities(namely act1,act2) and the main activity. act1(is a result calculating and display activity) act2( is another activity for input information) the main activity calls activity-act1 using callsubdelay2 with parameters now i am in activity-act1 from there I start activity-act2 From act2 can I call again act1 with different parameters to process the results. and when i go back to the activty-act1 with the back key again will it resume the first state when i called it from main activity. regards jng
Hi Need to understand weather the following process can be applied. for example i have three activities(namely act1,act2) and the main activity. act1(is a result calculating and display activity) act2( is another activity for input information) the main activity calls activity-act1 using callsubdelay2 with parameters now i am in activity-act1 from there I start activity-act2 From act2 can I call again act1 with different parameters to process the results. and when i go back to the activty-act1 with the back key again will it resume the first state when i called it from main activity. regards jng
Erel B4X founder Staff member Licensed User Longtime User Jan 16, 2017 #2 JNG said: From act2 can I call again act1 with different parameters to process the results. Click to expand... Yes. It will also bring act1 to front. JNG said: and when i go back to the activty-act1 with the back key again will it resume the first state when i called it from main activity. Click to expand... Pressing on the back key will remove act1 and show act2. Tip: It is easier to work with services than with activities. Only put UI related code in activities. Upvote 0
JNG said: From act2 can I call again act1 with different parameters to process the results. Click to expand... Yes. It will also bring act1 to front. JNG said: and when i go back to the activty-act1 with the back key again will it resume the first state when i called it from main activity. Click to expand... Pressing on the back key will remove act1 and show act2. Tip: It is easier to work with services than with activities. Only put UI related code in activities.
J JNG Member Licensed User Jan 17, 2017 #3 thanks I am bit tight using services and classes, basically I want to write class for this not understanding how to do it. I know using class it will be bit easy because i want to use instance several time. regards jng Upvote 0
thanks I am bit tight using services and classes, basically I want to write class for this not understanding how to do it. I know using class it will be bit easy because i want to use instance several time. regards jng
klaus Expert Licensed User Longtime User Jan 17, 2017 #4 ... basically I want to write class for this not understanding how to do it. Click to expand... Classes are explained in detail in the B4A User's Guide with examples. Upvote 0
... basically I want to write class for this not understanding how to do it. Click to expand... Classes are explained in detail in the B4A User's Guide with examples.