Android Question Clarification regarding working with three activityies

JNG

Member
Licensed User
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
From act2 can I call again act1 with different parameters to process the results.
Yes. It will also bring act1 to front.

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.
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

Member
Licensed User
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…