Can I call the android contact picker and force it

2019-02-27 16:06发布

问题:

I know how to force the orientation on my activities (Using the xml layout or programatically).

But can I force the contact picker to start in Portrait mode?

I call the contactPicker using the following code:

Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, CONTACT_PICKER_REQ_CODE);

回答1:

But can I force the contact picker to start in Portrait mode?

No. The developer of that app will handle portrait versus landscape how that developer wanted it handled.