Recently I came across a blog which talks about avoiding weak reference in android-https://medium.com/google-developer-experts/weakreference-in-android-dd1e66b9be9d
Currently, the project I am working on follows MVP architecture and we use weak references(for listeners) in presenters for various callbacks events.However, I am looking for alternate ways instead of using weak references. ..probably a better way I can design my application architecture to avoid such memory leak issues. The Question here is:-
Is the current approach which I am using i.e using weak references for various listeners in presenter harmful...??If so..than how I can solve this problem in a much better way.?