is there way to detect emulator ?

I am looking to detect android emulator .