Skip to content

How to enable PictureInPicture for android activities? #12780

Answered by jquick-axway
danimarin asked this question in Q&A
Discussion options

You must be logged in to vote

The main activity is the splash screen window you see on startup.

If you're trying to make a Titanium Ti.UI.Window a picture-in-picture window, then you need to apply this attribute to the org.appcelerator.titanium.TiActivity instead. You can do so in the "tiapp.xml" as shown below. (Note that all activities are resizable by default so you don't need to add that attribute.)

<ti:app>
	<android xmlns:android="http://schemas.android.com/apk/res/android">
		<manifest>
			<application>
				<activity android:name="org.appcelerator.titanium.TiActivity" android:supportsPictureInPicture="true"/>
			</application>
		</manifest>
	</android>
</ti:app>

This means you would need to call the Java enterP…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Max87ZA
Comment options

Answer selected by danimarin
Comment options

You must be logged in to vote
1 reply
@Max87ZA
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants