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.
精彩评论