I am unfamiliar with android Activity and Context related relationship, I just did a stupid copy and paste.
I should keep the original path if context instanceof Activity return false.
A quick question, do you know when context instanceof Activity return false? @wang16