I want to make a code which get IMEI from phone and check with given data (12345678912345). If it match it'll call `onSearchRequested();`

Here is my code

```
long imei=telephonyManager.getDeviceId();
if(imei==12345678912345)
         {
            onSearchRequested();
        }
else
{
         finish();
}

```

here `if(imei==12345678912345)` is not working on eclipse. I've used 

```
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> permission.

```