I have an activity where i have to trigger from place to place a custom pop-up dialog which is also a singleton
From my activity i open the pop-up :
ScheduleDialog.getInstance().refreshContent(new WeakReference<Context>(this), new WeakReference<ScheduleDialog.interface>(this));
What is best ? 1) create 2 local references ( in ScheduleDialog ) like :
Context mContext = nContext.get();
2) keep both like weak reference and only when i need them use :
nContext.get();
This is related about leaks error/warnings
Thanks