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

The Archive Base Latest Questions

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

My application is sending a notification.I want to implement when a user check notification

  • 0

My application is sending a notification.I want to implement when a user check notification and click on the notification I want to open a pop up on my application main screen.It is some thing like that my main screen stay as it is but a pop up will open in front
of it.
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-13T20:18:47+00:00Added an answer on June 13, 2026 at 8:18 pm

    You will need a Broadcast a intent and a Intent Receiver

    Below is my create Notification code.
    You will need to broadcast an intent when user clicks on notification icon.

        // create NotificationManager..
        NotificationManager mNotificationManager = (NotificationManager) this
                .getSystemService(Context.NOTIFICATION_SERVICE);
    
        Notification notification = new Notification(R.drawable.icon, null,
                System.currentTimeMillis());
    
        // create intent that will be broadcast.
        Intent i = new Intent();
        i.setClassName(this, BReceiver.class.getName());    
        i.setAction("Test");
    
        PendingIntent contentIntent = PendingIntent.getBroadcast(this, 0, 
                i, 0);
        notification.setLatestEventInfo(this, null, null, contentIntent);
        mNotificationManager.notify(0, notification);
    

    Below is my BroadCast Receiver

    public class BReceiver extends BroadcastReceiver {
    
        @Override
        public void onReceive(Context context, Intent intent) 
        {
            Log.d("Test", "########## intent action "+ intent.getAction());
            Toast.makeText(context, "Hi", Toast.LENGTH_LONG).show();
    
        }
    
    }
    

    The toast will be displayed when you click on the notification icon. It doesnot matter on which screen you are, the toast will be displayed whenever user click notification icon.

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

Sidebar

Related Questions

I've been sending emails on my application (ruby 1.8.7, rails 2.3.2) like this Thread.new{UserMailer.deliver_signup_notification(user)}
I had developed an application for sending email. On click of email button it
I am working on an asp.net application for sending emails. I want to make
I am sending email from my iPhone application. Everything working fine, but I want
I am developing one application which include the email sending functionality (which is like
Trying to implement a simple notification system based on private pub ( something like
At the request of a customer, I had to implement sending a notification email
I have a push notification that I am sending to a user and I
I am using smtplib and I am sending notification emails from my application. However
My app sending messages notification to the home screen notification bar, but when I'm

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.