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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:13:04+00:00 2026-06-12T09:13:04+00:00

In my task, I have perform the Reminder Checking process. If the reminder time

  • 0

In my task, I have perform the Reminder Checking process. If the reminder time comes to equal the Current time it will raise a pop-up box. In this Task the pop-up box Comes correctly.

But if i Merge this task to a Some big process, Which means the Reminder task will be a Sub-program of the main program. The Pop-up not coming in the other Screens. If the Time Met the Current time, the alert must shown to the User, while the user using any of the Screen in this Program..

if (LDbTime <= LSysTime) {
                                    rem_id = c.getString(c.getColumnIndex("reminder_id"));
                                    remName = c.getString(c.getColumnIndex("rname"));
                                    mediaPlayer.start();
                                    handler.post(new Runnable(){
                                    public void run() {
                                        alert.setTitle("Alert :"+remName);
                                        alert.setPositiveButton("OK", new DialogInterface.OnClickListener() {
                                            public void onClick(DialogInterface dialog, int whichButton) {
                                                mediaPlayer.pause();
                                            }
                                        });
                                        alert.show();
                                        db1.execSQL("UPDATE RemainAlarmS SET expired ='TRUE' WHERE reminder_id = " + rem_id );
                                            }
                                        });
                                    Thread.sleep(5000);
                                }

In this Alert message needs to Bring for Front Screen at the time of Reminder wake-up.

Please Help me to find the Solution..

Thanks in Advance.

  • 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-12T09:13:05+00:00Added an answer on June 12, 2026 at 9:13 am

    You Can use the Following codes for the Pending Intent..

    Intent i = new Intent("android.intent.action.DA");
    PendingIntent operation = PendingIntent.getActivity(getBaseContext(), 0, i, Intent.FLAG_ACTIVITY_NEW_TASK);
    AlarmManager alarmManager = (AlarmManager) getBaseContext().getSystemService(ALARM_SERVICE);
    GregorianCalendar calendar = new GregorianCalendar(y,m,d, hr, mi);
    long alarm_time = calendar.getTimeInMillis();
    alarmManager.set(AlarmManager.RTC_WAKEUP  , alarm_time , operation);
    

    And the “android.intent.action.DA” denotes the Activity of the DisplayNotification.java class

    public class DisplayNotification extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    
        int notifID = getIntent().getExtras().getInt("NotifID");
        Intent i = new Intent("android.intent.action.AD");
        i.putExtra("NotifID", notifID);  
        PendingIntent detailsIntent =PendingIntent.getActivity(this, 0, i, 0);
        NotificationManager nm = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
        Notification notif = new Notification(R.drawable.ic_launcher,"Time's up!",System.currentTimeMillis());
        CharSequence from = "AlarmManager - Time's up!";
        CharSequence message = "This is your alert, courtesy of the AlarmManager";        
        notif.setLatestEventInfo(this, from, message, detailsIntent);
        notif.vibrate = new long[] { 100, 250, 100, 500};        
        nm.notify(notifID, notif);
        finish();
    }
    }
    

    And the “android.intent.action.AD” denotes the AlarmDetails.java class

    public class AlarmDetails extends Activity {
    
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.alarmdetails);
    
        NotificationManager nm = (NotificationManager) 
                getSystemService(NOTIFICATION_SERVICE);
            //---cancel the notification---
            nm.cancel(getIntent().getExtras().getInt("NotifID")); 
    }
    
    }
    

    I hope this will help you!..

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

Sidebar

Related Questions

I have a task I need to perform, do_stuff(opts) , that will take ~1s
I have this error when i perform the following task, results = db1.executeSelectCommand(siteSql, (),)
I have a task like this... def self.perform(parsed_json) do_hard_work use_faye_to_push_status rescue => exception use_faye_to_push_error
I have this task: sum all numbers in string and perform multiplication input: 3
I have a calculation task that will take some time to complete. Minutes. Maybe
I have a task to perform an HttpWebRequest using Task<WebResponse>.Factory.FromAsync(req.BeginGetRespone, req.EndGetResponse) which can obviously
I have an oddly difficult task to perform. I thought it would be easy,
I have a jQuery function already to perform the task I need but is
I have two JavaScript code snippets. These perform specific task when an 'Update' button
I need a method to perform the following task, suppose if I have a

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.