To recognize touch gesture pattern for android