title: how to identify android mobile device uniqueid in xamarin android in c#
body: <p>For my application, i need to trace the users android device <strong>unique id</strong>, android devices will be give to the employees by the client and when they use that device open our application and type some code. we have to check whether request came from the devices of our employees then only we will open the app. If other people have this app in their phone even though app will not open. It's a requirement which client wants, i googled it a lot found few links.
  Tried this but not working </p>
  
  <pre><code>  public static String getDeviceAndroidID(Context context)
    {
        String android_id = Secure.getString(context.getContentResolver(),     Secure.ANDROID_ID);
        if(android_id != null)
            return android_id;
        else
            return "";
     }
  </code></pre>
  
  <p>tried this but not getting "context . getcontentresolver()"
  Need some assistance thanks.</p>