You need to check, if there is an activity to handle the Intent:
Context context = /* whatever suits your case: this/getActivity/.. */
Intent intent = new Intent(Intent.ACTION_PICK,Contacts.CONTENT_URI);
if (intent.resolveActivity(context.getPackageManager()) != null) {
startActivityForResult(intent,1000);
} else {
// no Contacts app available
}