I am trying to pick contacts with phone number only.And I am following this code
static final int PICK_CONTACT_REQUEST = 1; // The request code ... private
Use Uri.parse() instead. You can't instsntiate a Uri directly