开发者

Android Orientation for ACTION.VIEW

开发者 https://www.devze.com 2023-03-04 11:59 出处:网络
How can we fix orientation to portrait when we load a website such as twiter using Intent开发者_开发百科.ACTION_VIEW?You can\'t control how another app functions through an intent, you can just tell i

How can we fix orientation to portrait when we load a website such as twiter using Intent开发者_开发百科.ACTION_VIEW?


You can't control how another app functions through an intent, you can just tell it what to open.

You could make your own activity using a WebView, but you'll probably have to do a lot of work to get it to be as functional as the browser -- depends on your requirements I suppose.


Put android:screenOrientation="portrait" in the manifest for the correct intent.

0

精彩评论

暂无评论...
验证码 换一张
取 消