An open API service indexing awesome lists of open source software.

https://github.com/ospoon/leakcanaryforeclipse

Leakcanary1.5.1整合的Eclipse版本
https://github.com/ospoon/leakcanaryforeclipse

eclipse leakcanary

Last synced: 8 months ago
JSON representation

Leakcanary1.5.1整合的Eclipse版本

Awesome Lists containing this project

README

          

### LeakcanaryForEclipse集成
#### 1.克隆本项目与需要集成的项目放置同意路径,并eclipse加载此项目
#### 2.AndroidManifest.xml配置






#### 3.在合适位置添加打开DisplayLeakActivity.java的事件

@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_settings:
startActivity(new Intent(MainActivity.this, DisplayLeakActivity.class));
break;
}
return super.onOptionsItemSelected(item);
}

#### 注:Leakcanary的具体配置详见[https://github.com/square/leakcanary](https://github.com/square/leakcanary "Leakcanary")