spierce7
01/31/2019, 6:31 PMViktor Vostrikov
01/31/2019, 9:00 PMspierce7
01/31/2019, 9:26 PMApplication
context, and not an Activity context, that I'm causing a memory leak. It's possible I mess with instant run, although I don't see how it would, but I'm not entirely sure how Instant Run works, so maybe.
Instead of storing the variable as a Context
, I'm casting it to Application
instead, and the warning went away. Either its an oversight by the Android team, or storing the Application context is in fact fine.itnoles
02/01/2019, 12:10 AMspierce7
02/01/2019, 2:55 AMitnoles
02/01/2019, 4:03 AMspierce7
02/01/2019, 6:20 AMSinan Kozak
02/01/2019, 7:23 AMmarchuck
02/01/2019, 8:19 AMApplication
is good, but static Context
is bad?Sinan Kozak
02/01/2019, 8:21 AMspierce7
02/01/2019, 7:21 PMCasey Kulm
02/04/2019, 4:18 PM