10
You assign a View to your HttpRequestTask. Since a View requires a Context you are leaking it.
将视图分配给HttpRequestTask。由于视图需要上下文,所以您正在泄漏它。
Just think what happen if the View has been destroyed but the Http Task is not finished yet.
试想一下,如果视图已经被破坏,但是Http任务还没有完成,会发生什么情况呢?
Thats why you should avoid assigning Context relevanted stuff inside methods which may give something back while the view has been already killed.
这就是为什么您应该避免在方法中分配上下文相关的内容,在视图已经被杀死的时候,这些方法可能会返回一些东西。
Remove the debtorText and return the value to set it inside your view.
删除debtorText并返回值以在视图中设置它。