English, asked by shabi2529, 1 year ago

What is the difference between getbasecontext and getapplicationcontext?

Answers

Answered by pulkitdube
0

getApplicationContext() Application context is associated with the Application and will always be the same throughout the life cycle.

getBasecontext() should not be used, just use Context instead of it which is associated with the activity and can be destroyed when the activity is destroyed.


pulkitdube: Hope it will help you. Please mark the answer as the Brainliest
Similar questions