我可以调用Android的联系人选择器,并迫使它开始使用纵向? [英] Can I call the android contact picker and force it to start using portrait orientation?
本文介绍了我可以调用Android的联系人选择器,并迫使它开始使用纵向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道如何给力的方向上我的活动(使用XML布局或编程)。
不过,我可以强制联系人选择器,开始在肖像模式?
我用下面的code调用contactPicker:
意向意图=新的意图(Intent.ACTION_PICK,ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(意向,CONTACT_PICKER_REQ_ code);
解决方案
不过,我可以强制联系人选择器,开始在肖像模式?
没有。该应用程序的开发者将处理纵向与横向怎么说开发人员希望它来处理。
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);
解决方案
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.
这篇关于我可以调用Android的联系人选择器,并迫使它开始使用纵向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文