Added user agent detection to distinguish Android vs non-Android devices