Hi,
Works a s described.
I am not very experienced but, as you said, there may be unused/excess code. I can not say i fully understand the code. So, no improvements here
I guess you work more than a few minutes on job sites. You may want to not bind your phone/tablet.
A way to keep it running in the background an pop it up when needed might be usable.