The ability to add and create custom notifications.
Have a configuration screen for notifications. Displays all the notification rules. Long press on a rule to delete it. Press the Add button to create a rule.
Store the rules in a database table. Have 4 fields: ID (autoincrement), Param ID (int), Condition ID (int), Value (int)
Parameters and Conditions are stored in the arrays.xml file for easy changing of the descriptions and additions without having to update database tables.
After db update with new params, loop through the parameters rules to see if any match. If yes, display the notification. If no, skip it.
Adding the rules:
displays screen with a drop down for the Parameters, drop down for Conditional Expression and text box for a value to be added (typically >= 0 unless it needs to be negative).
The ability to add and create custom notifications.
Have a configuration screen for notifications. Displays all the notification rules. Long press on a rule to delete it. Press the Add button to create a rule. Store the rules in a database table. Have 4 fields: ID (autoincrement), Param ID (int), Condition ID (int), Value (int) Parameters and Conditions are stored in the arrays.xml file for easy changing of the descriptions and additions without having to update database tables. After db update with new params, loop through the parameters rules to see if any match. If yes, display the notification. If no, skip it.
Adding the rules: displays screen with a drop down for the Parameters, drop down for Conditional Expression and text box for a value to be added (typically >= 0 unless it needs to be negative).