I’m using the AlarmManager to go offever that goes off every day to send off alarms. As it sets off an alarm, it sets a flag saying bthat alarm has gone off. I was going to save these flags in a file. I tries to use the method openFileOutput, but got a error, I’ assuming its because the class broadcastRecever DOES NOT HAVE That method.
The flags are stored in a static class so the app can access them to. While the is running will the memory always be there? Must I save the state some how?
I’m using the AlarmManager to go offever that goes off every day to send
Share
You can use
openFileOutput: call it on the Context passed to the broadcast receiver:See http://developer.android.com/reference/android/content/Context.html#openFileOutput%28java.lang.String,%20int%29 for more detail.