上面this哪里报错,应该如何解决 public static class InnerSplashHandler extends Handler{ WeakReference<SplashActivity> mWeakReference; Context mContext; public InnerSplashHandler(SplashActivity splashActivity) { this.mWeakReference = new WeakReference<>(splashActivity); } @Override public void handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what){ case StaticClass.HANDLER_SPLASH: mContext.startActivity(this,GuideActivity.class); this这里报错,提示startActivity(android.content.Intent,android.os.Bundle)in Context cannot be applied to break; } }
不忘初心__
相关分类