android.support.multidex.MultiDex Java Examples
The following examples show how to use
android.support.multidex.MultiDex.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PerformanceApp.java From android-performance with MIT License | 6 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); if(mCrashTimes > 3){ // 删除文件,恢复到重新安装的状态 } if(mCrashTimes > 5){ // 清除热修信息 } LaunchTimer.startRecord(); MultiDex.install(this); DexposedBridge.hookAllConstructors(Thread.class, new XC_MethodHook() { @Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { super.afterHookedMethod(param); Thread thread = (Thread) param.thisObject; LogUtils.i(thread.getName()+" stack "+Log.getStackTraceString(new Throwable())); } }); }
Example #2
Source File: ConferenceEntryActivity.java From PLDroidRTCStreaming with Apache License 2.0 | 6 votes |
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_rtc_conference_config); setTitle(R.string.rtc_only); mCodecRadioGroup = (RadioGroup) findViewById(R.id.CodecRadioGroup); mRTCModeRadioGroup = (RadioGroup) findViewById(R.id.RTCModeGroup); mCheckBoxBeauty = (CheckBox) findViewById(R.id.CheckboxBeauty); mCheckBoxDebugMode = (CheckBox) findViewById(R.id.CheckboxDebugMode); mCheckBoxAudioLevel = (CheckBox) findViewById(R.id.CheckboxAudioLevel); mCheckboxEnableStats = (CheckBox) findViewById(R.id.CheckboxEnableStats); mRoomEditText = (EditText) findViewById(R.id.RoomNameEditView); SharedPreferences preferences = getSharedPreferences(getString(R.string.app_name), Context.MODE_PRIVATE); mRoomEditText.setText(preferences.getString("roomName", "")); MultiDex.install(this); }
Example #3
Source File: PalmApp.java From OmniList with GNU Affero General Public License v3.0 | 6 votes |
@Override public void onCreate() { super.onCreate(); Fabric.with(this, new Crashlytics()); mInstance = this; MultiDex.install(this); Colorful.init(this); /* * Enable stetho only in debug mode. */ if (BuildConfig.DEBUG) { Stetho.initializeWithDefaults(this); } AlarmsManager.init(getApplicationContext()); WakeLockManager.init(getApplicationContext(), false); }
Example #4
Source File: SampleApplicationLike.java From tinker-manager with Apache License 2.0 | 6 votes |
/** * install multiDex before install com.dx168.patchsdk.sample * so we don't need to put the com.dx168.patchsdk.sample lib classes in the main dex * * @param base */ @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) @Override public void onBaseContextAttached(Context base) { super.onBaseContextAttached(base); //you must install multiDex whatever com.dx168.patchsdk.sample is installed! MultiDex.install(base); SampleTinkerManager.setTinkerApplicationLike(this); SampleTinkerManager.initFastCrashProtect(); //should set before com.dx168.patchsdk.sample is installed SampleTinkerManager.setUpgradeRetryEnable(true); //optional set logIml, or you can use default debug log TinkerInstaller.setLogIml(new SampleTinkerLog()); //installTinker after load multiDex //or you can put com.tencent.com.dx168.patchsdk.sample.** to main dex SampleTinkerManager.installTinker(this); }
Example #5
Source File: MainApp.java From BusyBox with Apache License 2.0 | 6 votes |
@Override public void onCreate() { super.onCreate(); MultiDex.install(this); // Logging if (BuildConfig.DEBUG) { Jot.add(new Jot.DebugLogger()); } else { Jot.add(new CrashlyticsLogger()); } // Fabric Fabric.with(this, new Crashlytics(), new Answers()); Analytics.add(AnswersLogger.getInstance()); // Crashlytics Crashlytics.setString("GIT_SHA", BuildConfig.GIT_SHA); Crashlytics.setString("BUILD_TIME", BuildConfig.BUILD_TIME); FirebaseMessaging.getInstance().subscribeToTopic("main-" + BuildConfig.FLAVOR); }
Example #6
Source File: MyDuka.java From LNMOnlineAndroidSample with Apache License 2.0 | 5 votes |
protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); if (BuildConfig.DEBUG) { Timber.plant(new Timber.DebugTree()); } }
Example #7
Source File: GitoApplication.java From gito-github-client with Apache License 2.0 | 5 votes |
@Override protected void attachBaseContext(Context context) { super.attachBaseContext(context); MultiDex.install(this); sContext = context; RateThisApp.Config config = new RateThisApp.Config(3, 10); RateThisApp.init(config); }
Example #8
Source File: FaveoApplication.java From faveo-helpdesk-android-app with Open Software License 3.0 | 5 votes |
@Override public void onCreate() { super.onCreate(); MultiDex.install(this); //AndroidNetworking.initialize(getApplicationContext()); Fabric.with(this, new Crashlytics()); instance = this; new Prefs.Builder() .setContext(this) .setMode(ContextWrapper.MODE_PRIVATE) .setPrefsName(getPackageName()) .setUseDefaultSharedPreference(true) .build(); }
Example #9
Source File: MyApp.java From FaceT with Mozilla Public License 2.0 | 5 votes |
@Override protected void attachBaseContext(Context context) { super.attachBaseContext(context); Log.d("attachBaseContext(Context context) " , " start"); new Thread(new Runnable() { @Override public void run() { MultiDex.install(getBaseContext()); } }).start(); }
Example #10
Source File: MyApplication.java From Pic2Ascii with MIT License | 5 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); // you must install multiDex whatever tinker is installed! MultiDex.install(base); // 安装tinker Beta.installTinker(); }
Example #11
Source File: TinkerApplicationLike.java From HotFixDemo with MIT License | 5 votes |
private void initTinker(Context base) { // tinker需要你开启MultiDex MultiDex.install(base); TinkerManager.setTinkerApplicationLike(this); // 设置全局异常捕获 TinkerManager.initFastCrashProtect(); //开启升级重试功能(在安装Tinker之前设置) TinkerManager.setUpgradeRetryEnable(true); //设置Tinker日志输出类 TinkerInstaller.setLogIml(new MyLogImp()); //安装Tinker(在加载完multiDex之后,否则你需要将com.tencent.tinker.**手动放到main dex中) TinkerManager.installTinker(this); mTinker = Tinker.with(getApplication()); }
Example #12
Source File: MyApplication.java From AlbumCameraRecorder with MIT License | 5 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); // 腾讯提交bug MultiDex.install(base); }
Example #13
Source File: SampleApplicationLike.java From tinkerpatch-sample with MIT License | 5 votes |
/** * install multiDex before install tinker * so we don't need to put the tinker lib classes in the main dex */ @TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) @Override public void onBaseContextAttached(Context base) { super.onBaseContextAttached(base); //you must install multiDex whatever tinker is installed! MultiDex.install(base); }
Example #14
Source File: App.java From InstantAppStarter with MIT License | 5 votes |
@Override public void onCreate() { super.onCreate(); appComponent = createAppComponent(); MultiDex.install(this); init(); }
Example #15
Source File: MyApplication.java From Bugly-Android-Demo with Apache License 2.0 | 5 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); // you must install multiDex whatever tinker is installed! MultiDex.install(base); // 安装tinker Beta.installTinker(); }
Example #16
Source File: BaseApplication.java From Android-IM with Apache License 2.0 | 5 votes |
@Override public void onCreate() { super.onCreate(); baseApplication = this; MultiDex.install(this); sharedPrefHelper = SharedPrefHelper.getInstance(); sharedPrefHelper.setRoaming(true); //开启极光调试 JPushInterface.setDebugMode(true); mContext = BaseApplication.this; //实例化极光推送 JPushInterface.init(mContext); //实例化极光IM,并自动同步聊天记录 JMessageClient.init(getApplicationContext(), true); JMessageClient.setDebugMode(true); //初始化极光sms // SMSSDK.getInstance().initSdk(mContext); //初始化数据库 setupDatabase(); //通知管理,通知栏开启,其他关闭 JMessageClient.setNotificationFlag(FLAG_NOTIFY_SILENCE); //初始化utils Utils.init(this); //推送状态 initJPush2(); //初始化统计 JAnalyticsInterface.init(mContext); JAnalyticsInterface.setDebugMode(true); }
Example #17
Source File: LetvApplication.java From letv with Apache License 2.0 | 5 votes |
protected void attachBaseContext(Context base) { PluginHelper.getInstance().applicationAttachBaseContext(base); super.attachBaseContext(base); MultiDex.install(this); HotFix.init(this); HotFix.loadPatch(this, getFilesDir()); }
Example #18
Source File: BaseApplication.java From Aurora with Apache License 2.0 | 5 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(base); this.mAppDelegate = new AppDelegate(base); this.mAppDelegate.attachBaseContext(base); }
Example #19
Source File: ReadhubApplicationLike.java From JReadHub with GNU General Public License v3.0 | 5 votes |
@TargetApi(Build.VERSION_CODES.ICE_CREAM_SANDWICH) @Override public void onBaseContextAttached(Context base) { super.onBaseContextAttached(base); // you must install multiDex whatever tinker is installed! MultiDex.install(base); // 安装tinker Beta.installTinker(this); }
Example #20
Source File: MyApplication.java From HotFixDemo with MIT License | 5 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); // you must install multiDex whatever tinker is installed! MultiDex.install(mContext); // 安装tinker // 此接口仅用于反射Application方式接入。 Beta.installTinker(); }
Example #21
Source File: EZApplication.java From EZFilter with MIT License | 4 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); gContext = this; }
Example #22
Source File: App.java From APlayer with GNU General Public License v3.0 | 4 votes |
@Override protected void attachBaseContext(Context base) { LanguageHelper.saveSystemCurrentLanguage(); super.attachBaseContext(LanguageHelper.setLocal(base)); MultiDex.install(this); }
Example #23
Source File: AndroidStarterTestRunner.java From AndroidStarter with Apache License 2.0 | 4 votes |
@Override public void onCreate(final Bundle poArguments) { MultiDex.install(this.getTargetContext()); super.onCreate(poArguments); }
Example #24
Source File: MyApplication.java From GcmForMojo with GNU General Public License v3.0 | 4 votes |
protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }
Example #25
Source File: BaseApplication.java From YCVideoPlayer with Apache License 2.0 | 4 votes |
/** * 这个最先执行 */ @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }
Example #26
Source File: ChromeApplication.java From AndroidChromium with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); ContextUtils.initApplicationContext(this); }
Example #27
Source File: BookBoxApplication.java From fingerpoetry-android with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }
Example #28
Source File: App.java From phoenix with Apache License 2.0 | 4 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }
Example #29
Source File: Global.java From Saiy-PS with GNU Affero General Public License v3.0 | 4 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }
Example #30
Source File: SFBDemoApplication.java From skype-android-app-sdk-samples with MIT License | 4 votes |
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); MultiDex.install(this); }