当前位置: 首页>>代码示例>>Java>>正文


Java HttpResponseCache.flush方法代码示例

本文整理汇总了Java中android.net.http.HttpResponseCache.flush方法的典型用法代码示例。如果您正苦于以下问题:Java HttpResponseCache.flush方法的具体用法?Java HttpResponseCache.flush怎么用?Java HttpResponseCache.flush使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.net.http.HttpResponseCache的用法示例。


在下文中一共展示了HttpResponseCache.flush方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onStop

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
protected void onStop() {

        HttpResponseCache cache = HttpResponseCache.getInstalled();
        if (cache != null) {
            cache.flush();
        }
    }
 
开发者ID:BlueYangDroid,项目名称:MvpPlus,代码行数:8,代码来源:MyIntentService.java

示例2: onStop

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
protected void onStop() {
    super.onStop();
   HttpResponseCache cache = HttpResponseCache.getInstalled();
    if(cache != null) {  //Clearing the cache
        cache.flush();
    }
}
 
开发者ID:rishabh115,项目名称:Odyssey2017,代码行数:9,代码来源:FeedActivity.java

示例3: onStop

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
protected void onStop() {
    super.onStop();
    HttpResponseCache cache = HttpResponseCache.getInstalled();
    if (cache != null) {
        cache.flush();
    }
}
 
开发者ID:PacktPublishing,项目名称:Android-High-Performance-Programming,代码行数:8,代码来源:ResponseCache.java

示例4: put

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
public void put(Request key, HttpResponse value) {
    HttpResponseCache cache = HttpResponseCache.getInstalled();
    if (cache != null) {
        cache.flush();
    }
}
 
开发者ID:witrisna,项目名称:android-restless,代码行数:8,代码来源:FileCache.java

示例5: onStop

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
protected void onStop() {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
        final HttpResponseCache cache = HttpResponseCache.getInstalled();
        if (cache != null) {
            cache.flush();
        }
    }

    super.onStop();
}
 
开发者ID:crm416,项目名称:android-lite,代码行数:12,代码来源:MainActivity.java

示例6: onPause

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
protected void onPause() {
  HttpResponseCache cache = HttpResponseCache.getInstalled();
  if (cache != null) {
      cache.flush();
  }
  super.onPause();
}
 
开发者ID:sunnygoyal,项目名称:PowerToggles,代码行数:9,代码来源:ThemePicker.java

示例7: onStop

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
protected void onStop() {
    super.onStop();
    HttpResponseCache cache = HttpResponseCache.getInstalled();
    if (cache != null) {
        cache.flush();
    }
}
 
开发者ID:matrix-msu,项目名称:mbira-android-template,代码行数:9,代码来源:LoadingActivity.java

示例8: onStop

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
protected void onStop() {
	HttpResponseCache cache = HttpResponseCache.getInstalled();
	if (cache != null) {
		cache.flush();
	}
	super.onStop();
}
 
开发者ID:spectralmind,项目名称:sonarflow-android,代码行数:8,代码来源:MainActivity.java

示例9: close

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
public void close() throws IOException {
    HttpResponseCache cache = HttpResponseCache.getInstalled();
    if (cache != null) {
        cache.flush();
    }
}
 
开发者ID:aarya123,项目名称:CampusFeedv2,代码行数:8,代码来源:Api.java

示例10: onStop

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
public void onStop() {
    super.onStop();
    mAdapter.changeCursor(null);
    HttpResponseCache cache = HttpResponseCache.getInstalled();
    if (cache != null) {
        cache.flush();
    }
}
 
开发者ID:fenjuly,项目名称:Qshp,代码行数:10,代码来源:PostContentActivity.java

示例11: onTerminate

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
public void onTerminate() {
    super.onTerminate();

    // TODO clear cookiestore content here

    // remove cached files
    HttpResponseCache cache = HttpResponseCache.getInstalled();
    if (cache != null) {
        cache.flush();
    }
}
 
开发者ID:hanscappelle,项目名称:android-rest-example,代码行数:13,代码来源:MyApplication.java

示例12: run

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
public void run() {
    Process.setThreadPriority(THREAD_PRIORITY_BACKGROUND);

    final HttpResponseCache cache = HttpResponseCache.getInstalled();
    if (cache != null)
        cache.flush();
}
 
开发者ID:salema,项目名称:Podcatcher-Deluxe-Android-Studio,代码行数:9,代码来源:Podcatcher.java

示例13: onTerminate

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
@Trace
public void onTerminate() {
	super.onTerminate();
	aviewVideoService.close();

	HttpResponseCache cache = HttpResponseCache.getInstalled();
	if (cache != null) {
		cache.flush();
	}

}
 
开发者ID:aviewdevs,项目名称:aview,代码行数:13,代码来源:AviewApplication.java

示例14: onStop

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
@Override
protected void onStop() {
	HttpResponseCache cache = HttpResponseCache.getInstalled();
	if (cache != null) {
		cache.flush();
	}

	eventBus.unregister(this);
	super.onStop();
}
 
开发者ID:v00d00,项目名称:xr,代码行数:11,代码来源:HomeActivity.java

示例15: flushHttpCache

import android.net.http.HttpResponseCache; //导入方法依赖的package包/类
private static void flushHttpCache() {
    HttpResponseCache cache = HttpResponseCache.getInstalled();
    if (cache != null) {
        cache.flush();
    }
}
 
开发者ID:ldsddn,项目名称:wordpress_app_android,代码行数:7,代码来源:WordPress.java


注:本文中的android.net.http.HttpResponseCache.flush方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。