A new device which is integrated into a smartphone can detect diabetes in a few seconds from the saliva sample of a person, say scientists.