UserAgent での iPhone / iPad / Android phone / Android Tablet の見分け方
if ($ua =~ /Android/) { if ($ua =~ /Mobile/) { $type = 'Android phone'; } else { $type = 'Android tablet'; } } elsif ($ua =~ /iPhone/) { $type = 'iPhone'; } elsif ($ua =~ /iPad/) { $type = 'iPad'; }
http://googlewebmastercentral-ja.blogspot.com/2011/05/android.html