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版本
- Host: GitHub
- URL: https://github.com/ospoon/leakcanaryforeclipse
- Owner: OSpoon
- Created: 2017-05-17T06:35:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-17T08:32:41.000Z (over 8 years ago)
- Last Synced: 2024-12-28T06:09:38.426Z (10 months ago)
- Topics: eclipse, leakcanary
- Language: Java
- Size: 290 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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")