开发者

Specifying the screen orientation of an ACTION_VIEW intent

I want to play a video, so I'm using action_view like this.

intent.setAction(android.content.Intent.ACTION_VIEW);

Does anyone know of a way to specify that I want the video always play开发者_开发百科ed in a vertical screen orientation, or that determination always up to an activity itself?


That determination is up to the activity itself.


In the layout XML file you could add:

android:orientation="vertical"
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜