title: What context to use in Multi activity android app?
body: <p>I'm badly confused and hope to get your help understanding this concept.</p>
  
  <p>I have an app with 3 activities, splash, login and main and the main activity is a multi fragment drawer activity that uses sqlite.</p>
  
  <p>In my fragments i need to use context many places. I used to have a static context in my main activity defined and passed that around but in another questions someone suggested not to use static context to avoid leaks and i took the advice.</p>
  
  <p>I had to change a few things and got things working. I use getapplicationcontext() but now my application now consistently crashes. The crashes are more prominent when the app is put in background.</p>
  
  <p>My question is, which activity's context should i be using to start with? Splash? Login or main?  How would you get access to the context in resume?</p>
  
  <p>Thanks</p>