SDK

How to expand application display on to other screen?
lina-ss

● SDK Type: Dual Screen SDK

V50's :Game Launcher" application make to run "LG Game Pad" to the other screen. I need to implement the application that can make to run application display on to other screen. It can be done with CoverTools service's "Show main on Dual Screen" or "Show Dual Screen on main" menu after launch application. I would like to do this automatically using Dual Screen SDK in my java code of my application. Is there any way to do this?

Below is the log when I use CoverTools "Show main on Dual Screen". Is there a way by using "com.lge.android.intent.aciton.SWAP_SCREEN"?

06-14 16:08:29.574  1863 10177 W ActivityManager: Sending non-protected broadcast com.lge.android.intent.aciton.SWAP_SCREEN from system 3458:com.lge.covertools/1000 pkg com.lge.covertools
06-14 16:08:29.574 855 1633 V APM_AudioPolicyManager: getOutput() stream 1 selected device 00000002, output 13
06-14 16:08:29.574 1863 10177 W ActivityManager: Sending non-protected broadcast com.lge.android.intent.aciton.SWAP_SCREEN from system 3458:com.lge.covertools/1000 pkg com.lge.covertools

....
06-14 16:08:29.576 3458 3458 D CoverTools: [ActivityUtils.java:45:switchDisplay] mode : 0 / (main to cover(0), cover to main(1), switch display(2)
06-14 16:08:29.576 3254 3254 D VideoActivityMonitorService: received-> com.lge.android.intent.aciton.SWAP_SCREEN
06-14 16:08:29.577 1863 10177 D ActivityManagerServiceEx: [Display] moveToDisplay current: ActivityDisplay={0 numStacks=5}, currentStack: ActivityStack{92051ff stackId=79 type=standard mode=fullscreen visible=true translucent=false display=0, 1 tas ks}
06-14 16:08:29.577 855 1832 V AudioFlinger_Threads: acquireWakeLock_l() AudioOut_D status 0
06-14 16:08:29.577 1863 10177 D ActivityManagerServiceEx: [Display] moveToDisplay adjacent: ActivityDisplay={1 numStacks=1}, adjacentStack: ActivityStack{2443698 stackId=1 type=home mode=fullscreen visible=true translucent=false display=1, 1 tasks}
Posted on 17-Jun-2019
HongYeol

Re:How to expand application display on to other screen?

Dear lina-ss
HI, I'm a developer about Dual Screen.

if you want to show an activity on dual screen, you should be using an intent. ("Using secondary screens")
https://developer.android.com/preview/features/foldables

Thank you


Posted on 18-Jun-2019
lina-ss

Re:How to expand application display on to other screen?

Dear HongYeol,

Thank you very much for the advice. It works!! ^^


Posted on 19-Jun-2019
danielcrey

Re:How to expand application display on to other screen?

See, I have some different tricks which will be fine to use it. So if you want to expand your applications then you will use toshiba device then you will do that easily. If anyone used it or faced any type of issue, from browsing toshiba error 0xc0000185, you will get the proper solutions. I hope that will be fine for you all.


Posted on 15-Jul-2019
Navigation