When is the best time to kill a foreground activity?



When is the best time to kill a foreground activity?..

Answer / Renu Paras

The Android system can kill a foreground activity when it needs to free up resources, such as when memory is low. However, developers can also proactively kill a foreground activity by finishing() or calling System.exit(). It's generally recommended to let the system handle activity lifecycle management whenever possible.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

Is google killing android?

1 Answers  


Explain what are intent filters?

1 Answers  


Which dialog boxes that are supported in android? Explain?

1 Answers  


What is launcher icon?

1 Answers  


What is anr in android?

1 Answers   Arigo Infotech, UGC Corporation,


what are the different tools in android?

1 Answers  


Is it possible to started an application on powerup?

1 Answers  


Does android have a file manager?

1 Answers  


Which is the latest android version 2019?

1 Answers  


What is a toast notification?

1 Answers  


You must declare all application components in manifest file in this way?

1 Answers  


What is the demand of mobile application developers?

1 Answers  


Categories