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

  • SEARCH
  • Home
  • 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 8981299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:18:07+00:00 2026-06-15T20:18:07+00:00

I have an AlarmManager class, a simple class, an Application class and some other

  • 0

I have an AlarmManager class, a simple class, an Application class and some other class.
The simple class is called by AlarmManager and then the simple class try to achieve the goal with the help of Application class. It shouldn’t matter whether or not my app is in the background; I need to ensure that these three classes are alive.

Now, my question is: Will the Android OS destroy these three classes (AlarmManager class, simple class, Application class), if my app is in background? If the answer is yes, then should I use Service? If I use Service, how should I implement it with these three classes?

edited:

i am trying to post status using facebook sdk in a particular time. So, the Alarm Manager class will call the simple class in a particular time. then the simple class will get some data (like session, message) from the Application class and then the simple class will post the message to user’s wall.

the session , message etc are stored in Application class from other activity class.

  • 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-06-15T20:18:08+00:00Added an answer on June 15, 2026 at 8:18 pm

    I might want to show some code for clarity. You probably don’t have an AlarmManager but registered some of your components to be called by creating a PendingIntent and passing that to the system‘s AlarmManager. If that assumption is correct, if your app is not running (it doesn’t have a live process) at the time the alarm is triggered, Android will create one.
    And in the process load and instantiate all the classes that are used from your component. If your app is in the background (process is still there, ‘cached’), Android will reuse that process and call the necessary components.

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

Sidebar

Related Questions

I have an application that calls AlarmManager Intent intent; intent = new Intent(context, MyEventReceiver.class);
I've been trying to have my class BatteryPost be called by an alarmmanager in
I have an application that does some data processing, then notifies the user in
I have an application where I extend Application class and override the onCreate method.
I have an Android application, which makes use of an AlarmManager to schedule events.
I'm just trying to get a simple test app working with AlarmManager. public class
I have an application, which sets an alarm using AlarmManager, which starts another Activity
I have created a Alarm using AlarmManager. Intent intent = new Intent(MyApp.this,NotificationMessage.class); PendingIntent sender
Can't get over it, no matter how much I search. I have AlarmManager, where
I have a problem with the android alarmmanager. I'm setting the alarmmanager with two

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.