private final WeakReference<MainActivity> wrActivity;
@Override
private void handleMessage() {
MainActivity act = wrActivity.get();
if(act != null) {
// TODO
}
}
}
注意Activity onDestory()的时候将ThisHandler置为null
2022-09-22 10:56:31
}
注意Activity onDestory()的时候将ThisHandler置为null