清除缓存

   @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();
                }
            }
        });’

你可能感兴趣的:(清除缓存)