multi-window

How to enable split screen in my Android app?

谁说我不能喝 提交于 2020-02-21 09:53:22
问题 I want to enable Split Screen for my android app. If I try to drag my app to make it occupy the top half of my android device it gives the message "App doesn't support split screen". However, for other apps such as Facebook and WhatsApp, I am able to use split screen. I am using LGE Nexus 5X with Android 7 (nougat) which supports split screen. 回答1: Add this to your application or activity tag in AndroidManifest.xml : android:resizeableActivity=true Adding it to application will make all

How to enable split screen in my Android app?

眉间皱痕 提交于 2020-02-21 09:52:36
问题 I want to enable Split Screen for my android app. If I try to drag my app to make it occupy the top half of my android device it gives the message "App doesn't support split screen". However, for other apps such as Facebook and WhatsApp, I am able to use split screen. I am using LGE Nexus 5X with Android 7 (nougat) which supports split screen. 回答1: Add this to your application or activity tag in AndroidManifest.xml : android:resizeableActivity=true Adding it to application will make all

Activity onStop() not called when home button is pressed in Android N multi window mode

主宰稳场 提交于 2020-01-03 07:28:07
问题 I am trying to make our video app to support Android N multiwindow mode. I have discovered that activity lifecycle becomes confused in multiwindow mode. The phenomenon is when our app layouts on the top screen with the whole screen in portrait, then I click the Home button, the upper app onPause() called but onStop() not called. According to the google guideline https://developer.android.com/guide/topics/ui/multi-window.html#lifecycle, video app should pause video playback in onStop()

Video free multi window size is not changed in android 7.1

让人想犯罪 __ 提交于 2019-12-23 03:38:15
问题 I'm working on free multi window in android 7.1 . With test application free multi window is working perfect.(please fine screenshot 1) Now Im playing video using MX player app, at that time free multi window size is not effecting.(please fine screenshot 2) String mxPlayer = "com.xx.xx.ad"; intent1 = new Intent(Intent.ACTION_VIEW); intent1.setPackage(mxPlayer); Uri videoUri = Uri.parse("http://xxx.75.135/Files/xxx/1_video/ideo.m3u"); intent1.setDataAndType(videoUri, "application/mp4");

SDL2: two displays, two windows and fullscreen mode

大憨熊 提交于 2019-12-22 14:57:11
问题 I'm trying to create two windows on two displays. But I have a problem: the second window is displayed in full screen mode, but the first window is minimized, and I need to click on it on the taskbar to expand to full screen. I create windows in loop with code: windows_data.window = SDL_CreateWindow("Title", SDL_WINDOWPOS_CENTERED_DISPLAY(i), SDL_WINDOWPOS_CENTERED_DISPLAY(i), width, height, SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_SHOWN); Adding the flag SDL_WINDOW_MAXIMIZED does not solve

Changing the icon shown in a taskbar group for a multi window application

寵の児 提交于 2019-12-22 10:12:23
问题 On Windows 7 an application can control how to group their Windows on the taskbar. Windows has some default settings related to the executable, how the shortcut was created, the name of the program, etc. to apply some default grouping. The problem with host based applications like Java, is that the same executable is used by many programs so Windows has some registry settings to set that javaw.exe is a host app. When this happens, applications must configure at runtime how to group Windows

Support split screen in Android N+ only on tablets

时间秒杀一切 提交于 2019-12-21 16:17:43
问题 Is there a way to configure multi-window support for an activity only on screens large enough, e.g. tablet? https://developer.android.com/preview/features/multi-window.html#configuring doesn't mention that. Setting android:minimalHeight and android:minimalWidth seems to not help, because If the user moves the divider in split-screen mode to make an activity smaller than the specified minimum, the system crops the activity to the size the user requests. Use case: for certain activities, it

dimens.xml for multi window mod

五迷三道 提交于 2019-12-11 14:47:06
问题 My app supports multi window feature. I want the app to take dimensions from different dimens.xml files when the app is in normal mode and multi window mode. I have declared the minWidth = 255dp and minHeight = 600dp. I have declared the dimens-h600dp.xml and dimens.xml files but the app takes the values from only dimens-h600dp.xml in any mode. How can I make the app to take dimensions from different dimens.xml files when the app is in normal mode and multi window mode ? 回答1: You are

Screen gets reduced beyond the minimum width

久未见 提交于 2019-12-11 14:14:18
问题 My app supports the split-screen feature. I have set the minimum width = 255dp and minimum height=600dp for the app. When the app is in split-screen mode, the app gets reduced beyond 255dp when squeezed(eg. 230dp) thus distorting my layout. How can I make the app to occupy at least minimum width. 来源: https://stackoverflow.com/questions/58623556/screen-gets-reduced-beyond-the-minimum-width

How to get all visible running applications package names?

霸气de小男生 提交于 2019-12-11 06:43:31
问题 I have a custom launcher which is always visible and it starts 3 different apps. Starting from Android N on each app icon click (on the custom launcher) I must check whether any of the 3 applications is currently running. If no app is running, the clicked icon should start the app normally. If any of them is currently running multi window mode must be turned on and show both of them. If 2 of them are running, the inactive one (which is in "onPause" state) should be replaced with the third.