androidevil
androidevil

Reputation: 9171

Is it possible to control the orientation of another app started through implicit intent?

In my app, I have to show a video in Youtube. When the user press a button, I start this video through the following implicit intent, passing the url of the video in Youtube.

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.video_url))));

This starts another app, like the Youtube app.

My doubut is: Is it possible to make the youtube app play a video only in landscape or portrait orientation?

Upvotes: 0

Views: 277

Answers (1)

nilesh patel
nilesh patel

Reputation: 832

yes add permission on android manifeast

Upvotes: 0

Related Questions