Add preferences and string entries releated notification.
fix NPE, maybe
Fix backward compatibilities