When using Pick_Contact, after i choose a Contact it open ups Android Market
<p>help please</p>

<p>here is my code on onClick</p>

<pre><code>    if(v.getId()==R.id.btnContacts)
      {
          Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
          startActivityForResult(intent, PICK_CONTACT);
      }
</code></pre>

<p>here is my code on onActivityResult</p>

<pre><code>    if (resultCode == Activity.RESULT_OK) {
          Uri contactData = data.getData();
          Cursor c = managedQuery(contactData, null, null, null, null);
       if (c.moveToFirst()) {
       String id =   
         c.getString(c.getColumnIndexOrThrow(ContactsContract.Contacts._ID));

       String hasPhone =
       c.getString(c.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));

       if (hasPhone.equalsIgnoreCase("1")) {
      Cursor phones = getContentResolver().query( 
                   ContactsContract.CommonDataKinds.Phone.CONTENT_URI,null, 
                   ContactsContract.CommonDataKinds.Phone.CONTACT_ID +" = "+ id, 
                   null, null);
         phones.moveToFirst();
         String cNumber = phones.getString(phones.getColumnIndex("data1"));
         TextView txtPhoneNo = (TextView) findViewById(R.id.txt_PhoneNo);
         txtPhoneNo.setText(cNumber);
         c.close();
</code></pre>

<p>i dont know what's happening have tried a dozen solutions but its still the same, im running this in my Galaxy Tab</p>
