YalpStoreApplication.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:YalpStore 作者:
@Override
public void onCreate() {
    super.onCreate();
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
        try {
            HttpResponseCache.install(new File(getCacheDir(), "http"), 5 * 1024 * 1024);
        } catch (IOException e) {
            Log.e(getClass().getSimpleName(), "Could not register cache " + e.getMessage());
        }
    }
    PreferenceManager.setDefaultValues(this, R.xml.settings, false);
    Thread.setDefaultUncaughtExceptionHandler(new YalpStoreUncaughtExceptionHandler(getApplicationContext()));
    registerDownloadReceiver();
    registerInstallReceiver();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号