SteveYo
Oct 21, 2020Copper Contributor
Can't get device real width when app create
Hi all,
When running app on Surface duo, is always create on one screen(1350x1800), not two screen(for me is full screen, 2784x1800).
I can't get device real width when app only on one screen, but user usually don't put app on two screen.
I use android api like
WindowManager wm = (WindowManager) MainActivity.this.getSystemService(Context.WINDOW_SERVICE);
Point size = new Point();
wm.getDefaultDisplay().getRealSize(size);
Still not get real device width.
So, is there any function can get real device width? or can app start on two screen(full screen)?
Thanks for any helpful tip!