ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #17193
how to popup a message box on screen
Hello,
I do monitor already the battery with some crontab job. I would like to
make a signal to the device owner (my wife) when the problem of fast
battery drain occurs, i.e. when for example the drainage in a given
interval is unusual high; I figured already out how to play a sound with:
$ sudo cp /var/lib/lxc/android/rootfs/system/res/sound/ringtone.wav ~
$ sudo chown phablet ringtone.wav
$ ubuntu-app-launch mediaplayer-app file:///home/phablet/ringtone.wav
This gives a 10 second continuous beep (not really a ringtone as the
filename says, but very good for the purpose);
How can I pop-up in parallel a message box on the screen with some text
like "Battery drain! Re-boot NOW and re-charge!", if possible together
with an OK button which fires up "sudo reboot"?
Thanks
matthias
--
Matthias Apitz, ✉ guru@xxxxxxxxxxx, 🌐 http://www.unixarea.de/ ☎ +49-176-38902045
Follow ups