What are strong pointers and weak pointers
sp means StrongPointer in Android, the memory that occupied by the pointed object will be freed if the reference count equals to 0. wp means WeakPointer, so if I have a weak pointer, I don’t care whether the referenced object is alive or not. It might be used in some cache and comparison scenarios. First, … Read more