i have this broadcastreceiver that executes some code from time to time and triggers itself again by setting a timer (alarmmanager). the result of the calculations is an integer value, which should be used as input for the next time the algorithm is executed. therefore, i need to store this value.
i don’t want to do this with SQLite as this would produce an enormous overhead – but what are the alternatives? manage this via shared preferences? store it within files?
any good ideas?
Carry the data around in the PendingIntent you specify to the AlarmManager. However, instead of a repeating alarm, you might need to set a new alarm each time.