right, i've got you covered. :)
from the discussions wiht peli,
i designed a "generic" alert framework.
one table holds all kinds of alerts, so they share the _id space.
different types can be accessed thru diffrent uri.
atmthis is only
org.openintents.alert/generic
org.openintents.alert/location
while generic is the main datatype all the others are
derived from.
(actualy it's just a matter of renaming the public fields
to something more convenient.)
atm wheres the follwoing generic fields:
_id|_count| type | condition1 | condition2 | rule | nature | active |
activate_on_boot | intent | intent_category | intent_uri
in the type location this maps to
_id|_count| type | position | distance | rule | nature | active |
activate_on_boot | intent | intent_category | intent_uri
some of these fields are for further expansion at a later point in
time.
rule will be a rule to combine several alert into one complex, the
alert type for this is "combined"
activate_on_boot speaks for it self, i'll hope to make a service that
register all marked alerts on system boot.
nature is one of "user" or "system" (defaults to "user" if not
given).
this is because some apps might not want he user to see tall their
alerts, might not be usefull.
an list of all alerts in the core with type generic would still be
able to show them, all other lists
should only show "user" alerts.
the contentprovider itself should be working already, ill hope to have
a list and an add activity
for generic alerts by tuesday. (lot of work for university right now,
so coding progress is slow :/ )
things still unclear;
-are 2 conditon fields enough?
-how to store time/date alerts? codition1=date conditon2=time ?
-rename intent to intent_action ? cause that's what it realy is, i
guess.