StephenKDS / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

How to write NotificationActions #468

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Maybe I just don't understand the documentation on the actions very well, but I 
have put a command (including the quotes) as a Notification action.

"echo {deviceId} - {title} - {description} - {data} >> android_samsung.log"

The expected result would be that this data is written to a file called 
android_samsung.log

Here is some console output related to a event

2012-02-07 21:33:55,438 INFO [NotificationManagerImpl] - Notification received: 
notificationId=38074293633249328, type=Battery
2012-02-07 21:33:55,455 INFO [OperatingSystemProcessManagerImpl] - Output of 
command execution: "echo -7533161610807978852 - "Phone battery state" - 
"Discharging, remaining charge: 40%" - "40" >> android_samsung.log"
sh: echo -7533161610807978852 - Phone: not found

2012-02-07 21:33:55,455 INFO [OperatingSystemProcessManagerImpl] - Command 
["echo -7533161610807978852 - "Phone battery state" - "Discharging, remaining 
charge: 40%" - "40" >> android_samsung.log"] exited with code [127]

Original issue reported on code.google.com by RoelVeld...@gmail.com on 7 Feb 2012 at 8:41