Can I stack and execute Android activities first?

Asked 1 years ago, Updated 1 years ago, 67 views

I don't know if the expression is weird, but to explain it in detail

When there are activities 1, 2, and 3, I want to run the app for the first time and perform onCreate() for all activities 1, 2, and 3.

I searched in many ways, but I couldn't do onCreate() without displaying the screen.

So what I thought was to build activities by creating 1 and then creating 2 with int and 3 with int.

In this case, if you press the Back key, the screen will change to 3 >2 >1, but I want to process it separately as onBackPressed.

However, I am worried that if I do this in advance, memory or other abnormalities will occur.

I need your advice.

틀리Please let me know if there are any mistakes!

android actvitiy

2022-09-22 17:57

1 Answers

It seems that each of these activities will depend on which UI and what kind of work they are doing. It's not a normal situation, but I don't think there will be a big problem. I think it would be good if you could tell me why you are trying to deal with it like you said.


2022-09-22 17:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.