title: Unable to acess contacts with phonegap application
body: <p>I have written a code following the documentation on phone gap website`  
      </p>
  
  <pre><code>// Wait for Cordova to load
  //
  document.addEventListener("deviceready", onDeviceReady, false);
  
  // Cordova is ready
  //
  function onDeviceReady() {
      // find all contacts
      var options = new ContactFindOptions();
  
      var fields = ["displayName", "name"];
      navigator.contacts.find(fields, onSuccess, onError, options);
  }
  
  // onSuccess: Get a snapshot of the current contacts
  //
  function onSuccess(contacts) {
      for (var i=0; i&lt;contacts.length; i++) 
      {
          console.log("Display Name = " + contacts[i].displayName);
        var element = document.getElementById('cont');
  
        element.innerHTML='&lt;li&gt;&lt;a href="#"&gt;' + contacts[i].displayName + '&lt;/a&gt;&lt;/li&gt;';
  
      }
  }
  
  // onError: Failed to get the contacts
  //
  function onError(contactError) {
      alert('onError!');
  }
  
  &lt;/script&gt;`
  </code></pre>
  
  <p>It is working fine in andriod emulator but when i install the application samsung galaxy phone it return a "null". Kindly Help.</p>