Android finds out why dogs are mans best friends