lifecycle tag

4 questions


1 answers
106 views
0
I want to start a new activity when I click a button on Android, what should I do?

How do I display a new activity when I click the activity button on the Android app?Also, will it be possible to deliver data between these two activities then?


1 answers
109 views
0
I want to erase the activity from the history stack

There are three activities in my app.When the user goes from Activity 2 to Activity 3, can we erase Activity 1 and Activity 2 from the history stack? When the user presses the back button while playin...


1 answers
104 views
0
If you replace the fragment in Android Fragment Transaction, the fragment life cycler is destroyed and onCreate, so can you control this part? Don't let the gc eat you (so that you don't destroy me)

Currently, we have implemented a tab, and we are drawing a frame on Frame Layout and a view as a replace with Fragment Transaction. Both fragments are bringing in items from the server call. Every tim...


1 answers
128 views
0
Please tell me the method for the life cycle of Android activities.

What is the life cycle of Android activities?I think onCreate(), onStart(), and onResume() are all similar methods, so please tell me the role of these methods.


© 2024 OneMinuteCode. All rights reserved.