Handler Handler=new Handler () {
WeakReferenceThe context=new WeakReference (MainActivity. This);
@ Override
Public void handleMessage (Message MSG) {
Super. HandleMessage (MSG);
The Log i. (TAG, "the context=" + context).
System. The gc ();
The Log i. (TAG, "the context=" + context).
}
};
Question, I'll find data said weak references will be recycled, but will not happen when I didn't meet with GC to recycle it?
CodePudding user response:
This may be