protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); handler = new Handler(); mainPresenter = new MainPresenter(this); toolbar = FindViewById <Toolbar>(Resource.Id.toolbar); toolbar.Title = Resources.GetString(Resource.String.daily); SetSupportActionBar(toolbar); fm = SupportFragmentManager; bottomBar = BottomBar.AttachShy((CoordinatorLayout)FindViewById(Resource.Id.coordinatorLayout), FindViewById(Resource.Id.swipeRefreshLayout), bundle); bottomBar.UseFixedMode(); bottomBar.SetItems(Resource.Menu.bottombar_menu); bottomBar.SetOnMenuTabClickListener(this); MobclickAgent.SetDebugMode(true); MobclickAgent.OpenActivityDurationTrack(false); MobclickAgent.SetScenarioType(this, MobclickAgent.EScenarioType.EUmNormal); updManager = IFlytekUpdate.GetInstance(this); updManager.SetDebugMode(true); updManager.SetParameter(UpdateConstants.ExtraWifionly, "true"); updManager.SetParameter(UpdateConstants.ExtraNotiIcon, "true"); updManager.SetParameter(UpdateConstants.ExtraStyle, UpdateConstants.UpdateUiDialog); updManager.AutoUpdate(this, this); }
public override void OnCreate() { base.OnCreate(); MobclickAgent.SetDebugMode(true); MobclickAgent.OpenActivityDurationTrack(false); MobclickAgent.SetScenarioType(this, MobclickAgent.EScenarioType.EUmNormal); OkHttpUtils.Context = this; SQLiteUtils.Instance(); PlatformConfig.SetWeixin("wxcf8f642a8aa4c630", "76ebc29b4194164aee32eedff2e17900"); PlatformConfig.SetSinaWeibo("1422675167", "02975c36afd93d3ae983f8da9e596b86", "https://api.weibo.com/oauth2/default.html"); if (!BuildConfig.Debug) { AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironment_UnhandledExceptionRaiser; } }
public override void OnCreate() { base.OnCreate(); ImageLoaderConfiguration configuration = new ImageLoaderConfiguration.Builder(this).WriteDebugLogs().Build(); ImageLoader.Instance.Init(configuration);//初始化图片加载框架 Config.Debug = true; SQLiteUtil.Instance(); MobclickAgent.SetDebugMode(true);//开启调试模式,如果不开启则不会上传umeng统计 MobclickAgent.OpenActivityDurationTrack(false); MobclickAgent.SetScenarioType(this, MobclickAgent.EScenarioType.EUmNormal); PlatformConfig.SetWeixin("wx633888643fbae319", "5034ad765b2ba64dec7ed7c6618581fb"); PlatformConfig.SetSinaWeibo("1422675167", "02975c36afd93d3ae983f8da9e596b86", "https://api.weibo.com/oauth2/default.html"); PlatformConfig.SetQQZone("100424468", "c7394704798a158208a74ab60104f0ba"); if (!BuildConfig.Debug) { AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironment_UnhandledExceptionRaiser; } activities = new List <Activity>(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); SetContentView(Resource.Layout.Main); mainPresenter = new MainPresenter(this); var toolbar = FindViewById <Toolbar>(Resource.Id.toolbar); SetSupportActionBar(toolbar); fm = SupportFragmentManager; bottomBar = BottomBar.Attach(this, bundle); bottomBar.UseFixedMode(); bottomBar.SetItems(Resource.Menu.bottombar_menu); bottomBar.SetOnMenuTabClickListener(this); MobclickAgent.SetDebugMode(true); MobclickAgent.OpenActivityDurationTrack(false); MobclickAgent.SetScenarioType(this, MobclickAgent.EScenarioType.EUmNormal); }