AviewApplication.java 文件源码

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

项目:aview 作者:
@AfterInject
@Trace(tag = TAG, level = Log.DEBUG)
void init() {

    // if (BuildConfig.DEBUG) {
    // aviewPrefs.pref_openedDrawer().put(false);
    // }

    // Create a unique id for this install if one doesn't already exist
    if (!aviewPrefs.ivid().exists()) {
        if (Log.isLoggable(TAG, Log.DEBUG))
            Log.d(TAG, "Creating new ivid");
        aviewPrefs.ivid().put(UUID.randomUUID().toString());
    }

    if (Log.isLoggable(TAG, Log.DEBUG))
        Log.d(TAG, "ivid=" + aviewPrefs.ivid().get());

    // Create a cache for automatically caching HTTP requests
    try {
        File httpCacheDir = new File(this.getCacheDir(), "http");
        long httpCacheSize = 10 * 1024 * 1024; // 10 MiB
        HttpResponseCache.install(httpCacheDir, httpCacheSize);
    } catch (IOException e) {
        if (Log.isLoggable(TAG, Log.INFO))
            Log.i(TAG, "HTTP response cache installation failed:" + e);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号