2454days since
ADC1 announcement

2109days since
Device availability

Applications‎ > ‎AstroClock‎ > ‎

Broadcast Intents

AstroClock sends 12 different broadcast intent which your app can receive!
Create an intent filter which matches on these actions:

ASTROCLOCK_MIDDAY
ASTROCLOCK_MIDNIGHT
ASTROCLOCK_SUNRISE
ASTROCLOCK_SUNSET

ASTROCLOCK_FULLMOON
ASTROCLOCK_NEWMOON
ASTROCLOCK_FIRSTQUARTER
ASTROCLOCK_LASTQUARTER

ASTROCLOCK_NORTHERSOLSTICE
ASTROCLOCK_SOUTHERNSOLSTICE
ASTROCLOCK_NORTHWARDEQUINOX
ASTROCLOCK_SOUTHWARDEQUINOX

AstroClock also offers a content provider which gives you the (formatted) dates of 12 upcoming events listed above.
Content URI:
content://astroclock
Columns:
 _id an integer corresponding to the type of event as ordered above starting at 0 (rows are ordered chronologically)
 name human readable type of event

 description formatted date time string representing moment of first upcoming event of this type
 time_utc the moment of first upcoming event of this type in milliseconds utc



App that use AstroClock's broadcast intents



Comments