Android: How to create a notification from the command line (terminal emulator or shell script)? -
i create notification (icon in notification bar plus message in notification drawer) shell script i'm running on android device. have cyanogenmod11, comes busybox v1.22.1 bionic.
i've discovered how create toast (http://forum.xda-developers.com/showthread.php?t=773232) need notification. difference between toast , notification, see excellent thread: https://android.stackexchange.com/questions/52789/popups-dialogs-notifications-toasts-whats-the-difference
can point me in right direction? i'm guessing involve android activity manager (am) i've searched every nook , cranny of internet , cannot find way create notification command line on android.
source: https://forum.xda-developers.com/showpost.php?p=69859668&postcount=18
date: 30th november 2016, 02:32 pm
two years ago in need of simple notification tool have been run command line in script. far best found thread , tiny app made corruptor64. wasn't looking decided try make tool myself. starting scratch (i not android developer) in few days of studying , developing ended working small app, named notify4scripts , made public past june, here on github https://github.com/halnovemila/notify4scripts
note since app service has launched android's shell "am" (activity manager) command, android system needs rooted first in order able use such command , have notify4scripts executed.
Comments
Post a Comment