I keep getting a warning for a memory leak for my static fragment instance. I declare it as follows:
private static myFragment thisFragment;
and call it here:
public static myFragment newInstance() {
if (thisFragment == null) {
thisFragment = new myFragment();
}
return thisFragment;
}
How do I fix this? any ideas?
Thanks!