文章标题


    @Override
    protected void initData() {
        mHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                if (SpUtils.getBoolean(Constants.SP_GUIDE, true)) {
                    startActivity(new Intent(SplashActivity.this, GuideActivity.class));
                } else {
                    //自动登录的情况
                    if (!TextUtils.isEmpty(CommonUtils.getToken()) && !TextUtils.isEmpty(CommonUtils.getPersonId())) {
                        if (!TextUtils.isEmpty(CommonUtils.getModuleSwitch()) && HXSDKHelper.getInstance().isLogined()) {
                            //加载广告
                            startActivity(new Intent(SplashActivity.this, MainActivity.class));
                        } else if (CommonUtils.isOrganization()) {
                            startActivity(new Intent(SplashActivity.this, OrganizationHomeActivity.class));
                        } else {
                            startActivity(new Intent(SplashActivity.this, LoginActivity.class));
                        }
                    } else {
                        startActivity(new Intent(SplashActivity.this, LoginActivity.class));
                    }
                }
            }
        }, 15000);
    }
阅读更多
上一篇Android Studio快捷键汇总(Mac)
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭