提交 033e6e00 编写于 作者: 门心叼龙's avatar 门心叼龙

code perfect

上级 b5dba4c0
......@@ -82,13 +82,19 @@ public class MainActivity extends AppCompatActivity implements View.OnClickListe
handlerLeak();
break;
case R.id.btn_memory_shake:
String str = null;
for(int i = 0 ;i < 1000000;i++){
str += String.valueOf(i);
}
memoryShake();
break;
}
}
private void memoryShake() {
String str = null;
for(int i = 0 ;i < 10000;i++){
str += String.valueOf(i);
Log.v("MYTAG","str:"+str);
}
}
@DebugLog
public void handlerLeak() {
mMyHandler = new MyHandler();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册