AndroidRefWatcherBuilder.watchActivities should be used instead.
We will make this class internal in the next major version.HeapDump and corresponding AnalysisResult.Reachability.Inspectors that knows about common AOSP and library
classes.RefWatcherBuilder with appropriate Android defaults.WatchExecutor suitable for watching Android reference leaks.RefWatcher instance and makes it available through LeakCanary.installedRefWatcher().DisplayLeakActivity.DisplayLeakActivity.RefWatcher that works out of the box, and starts watching activity
references (on ICS+).RefWatcher installed via
AndroidRefWatcherBuilder.buildAndInstall(), and RefWatcher.DISABLED is no
RefWatcher has been installed.HeapAnalyzerService, which is
a different process than the normal app process.AbstractAnalysisResultService to listen to analysis results.AbstractAnalysisResultService.onHeapAnalyzed(AnalyzedHeap) instead.AndroidRefWatcherBuilder.buildAndInstall().RefWatcher should wait until it checks if a
tracked object has been garbage collected.AndroidRefWatcherBuilder.buildAndInstall().