Android 的Fragment fragment 的类变量不可以涉及context,例如getcontext.getSystemService()。 会报空指针异常,因为此时activity的context还没有和fragment绑定。