Not invoke callback if activity is not active