How to find Android Device UDID or unique ID?

We can find it by 


String android_id =
                Settings.Secure.getString(getContentResolver(),
                        Settings.Secure.ANDROID_ID);