Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4608512
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:51:20+00:00 2026-05-22T00:51:20+00:00

I’m using the AlarmManager to go offever that goes off every day to send

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:51:21+00:00Added an answer on May 22, 2026 at 12:51 am

    You can use openFileOutput: call it on the Context passed to the broadcast receiver:

    @Override
    public void onReceive(Context context, Intent intent)
    {
      context.openFileOutput(....);
    }
    

    See http://developer.android.com/reference/android/content/Context.html#openFileOutput%28java.lang.String,%20int%29 for more detail.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application, which sets an alarm using AlarmManager, which starts another Activity
I'm trying to create my first AppWidget using the AlarmManager class so that I
I decided to write simple alarm clock (using AlarmManager). When alarm works out I
How to set Alarm Tone from My Application using AlarmManager? My RingTonePicker Method:- private
I am using AlarmManager and NotificationManager with BroadcastReceiver . When I set an alarm
I am using a Boot receiver to fire AlarmManager,so that it repeats it's task
I am using the alarmManager to set up multiple alarms within my application and
I am setting an alarm using an AlarmManager. The AlarmManager is set with the
I have created a Alarm using AlarmManager. Intent intent = new Intent(MyApp.this,NotificationMessage.class); PendingIntent sender
I'm trying to start a service using Alarmmanager with pendingIntent. I stuck with Unable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.