Page 1 of 1

Wm size error: how to get screen size?

Posted: 10 Dec 2017 05:31
by EternalLearner
Hello, I have been using Automagic for several weeks, and I love it! What a fantastic project.

I am trying to use a set of flows by Bushmills called ChargeBar, and I have run into this problem.

Execute command: wm size
does not work. The error it gives is:
Can't connect to window manager; is the system running?

In the forum posts about ChargeBar, one user ran into this problem after upgrading to Nougat. I am running Nougat (7.0) on a Samsung Galaxy S8. Do you know if there is an alternate command or a condition in which this command fails?

Thank you so much!

Re: Wm size error: how to get screen size?

Posted: 10 Dec 2017 17:11
by Desmanto
You can use java to get the screen resolution. viewtopic.php?f=4&t=6989