清除缓存

@Override
protected void onResume() {
super.onResume();
try {
CliearUyils.getdqSize(ThreadActivity.this);
} catch (Exception e) {
e.printStackTrace();
}
【清除缓存】}



textView3 = (TextView) findViewById(R.id.textView3);
tv_huancun = (LinearLayout) findViewById(R.id.tv_huancun);
tv_huancun.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
//Textview点击事件里面写
try {
CliearUyils.clearAllCache(ThreadActivity.this);
String s = CliearUyils.getdqSize(ThreadActivity.this);
textView3.setText(s);
} catch (Exception e) {
e.printStackTrace();
}
}
}); ’

    推荐阅读