The new ActivityOptions setLaunchDisplayId (int launchDisplayId) function in Android-O seems to always crash my app when I try to launch an activity intent.
Both when I launch activities from my own app and when I try to launch other apps i.e. Chrome Canary.
Does anyone know if this is a general problem with the new API's or am I missing something:
A small snippet of my code is below:
options.setLaunchDisplayId(1);
startActivity(intent, options);
NOTE I was testing with 'simulate a second screen' enabled (@1080p if it matters).
UPDATE
I have tried the ADB command adb shell start com.chrome.canary --display 1
,
and I get the message:
start: must be root