Fix bug. If use onCreate to initialize application context, when subclass don't invoke with super, the context will not be initialized. So use constructor instead.