jw
01/06/2016, 2:38 AMapptreematt
01/06/2016, 2:38 AMapptreematt
01/06/2016, 2:41 AMvishnurajeevan
01/06/2016, 2:42 AMapptreematt
01/06/2016, 2:47 AMjohannes.lagos
01/07/2016, 4:39 PMmg6maciej
01/07/2016, 4:45 PMjw
01/07/2016, 4:47 PMjohannes.lagos
01/07/2016, 4:49 PMjohannes.lagos
01/07/2016, 4:49 PMcedric
01/08/2016, 10:49 PMgetResources()
on the context until after onCreate()
has run but I can’t find any doc about that. Does that ring any bell? Am I imagining things?jw
01/08/2016, 10:56 PMdamian
01/08/2016, 10:57 PMcedric
01/08/2016, 10:57 PMcedric
01/08/2016, 10:58 PMjw
01/08/2016, 10:58 PMjw
01/08/2016, 10:58 PMdamian
01/08/2016, 10:59 PMcedric
01/08/2016, 10:59 PMonCreate()
. I suspect you’ll get the NPE if you try before super.onCreate()
and that it would work if after. Speculating right now, haven’t testedjw
01/08/2016, 11:00 PMsuper.onCreate()
you should be finejw
01/08/2016, 11:00 PMdamian
01/08/2016, 11:00 PMsuper.onCreate()
and it was good to go 👍 (I happen to have the debugger open right now 😉 )cedric
01/08/2016, 11:01 PMgetResources()
?cedric
01/08/2016, 11:01 PMdamian
01/08/2016, 11:02 PMFragment
? haven't trieddamian
01/08/2016, 11:03 PMonAttachedToWindow
is called after onCreate
damian
01/08/2016, 11:05 PMresources
is non-non even before super.onAttach
in `Fragment`sdamian
01/08/2016, 11:05 PMAppCompatActivity
fwiw)cedric
01/08/2016, 11:05 PMApplicationContext
cedric
01/08/2016, 11:05 PM