Yeah, but where are you crating a instance of this class? :$ For example in an activity or some fragment...
Ah, you're calling context.getResources() outside of any method, so it'll approximately get invoked before your field mContext gets assigned...
Обсуждают сегодня