adspace
When is the best time to kill a foreground activity?
Answer Posted / 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 View All Answers