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 6124353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:07:24+00:00 2026-05-23T16:07:24+00:00

hi all how to implements code for displaying alert message that alert message is

  • 0

hi all how to implements code for displaying alert message that alert message is when system time and our given time is same then it display a message as alert(“you have a new message”).if our given time is 04:22:00 when system time also same as our given time then receive message as alert.so kindly help any one of you to solve this problem

  • 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-23T16:07:24+00:00Added an answer on May 23, 2026 at 4:07 pm

    You’ll need an AlarmManager to wake up the system in the exact moment:

    long triggerAtTime = 0;
    try {
        triggerAtTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
            .parse("2011-07-12 14:00:00").getTime();
    } catch (ParseException e) {
    }
    
    Intent intent = new Intent(this, TestReceiver.class);
    PendingIntent intentToSend = PendingIntent.getBroadcast(this, 0, intent, 0);
    
    AlarmManager manager = (AlarmManager) getSystemService(ALARM_SERVICE);
    manager.set(AlarmManager.RTC_WAKEUP, triggerAtTime, intentToSend);
    

    And a BroadcastReceiver:

    public class TestReceiver extends BroadcastReceiver {
        @Override
        public void onReceive(Context context, Intent intent) {
            // TODO: notify the user
        }
    }
    

    And some XML in your manifest file:

    <receiver android:name=".TestReceiver"></receiver>
    

    In the onReceive function you can create a Toast or a status bar Notification:

    http://developer.android.com/guide/topics/ui/notifiers/index.html

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

Sidebar

Related Questions

hi all how to implements code for creating a method for sending message to
I have a subclass of UIView that implements code to draw CoreText. In the
I have different fruit class, all implements the same interface IFruit : public interface
If have a set of classes that all implement an interface. interface IMyinterface<T> {
I have a data access library that has a few classes that all implement
I have developed some classes with similar behavior, they all implement the same interface.
hi all how to implement code for displaying images in 3 rows with 3
When you have a class car that implements IVehicle and you want to wrap
hi all how to implement code for displaying different images randomly in a row
I am writing a bit of code that implements an (unsigned) integer counter. It

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.