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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:26:26+00:00 2026-05-22T20:26:26+00:00

I want to show a notification after receiving a WAP push message in my

  • 0

I want to show a notification after receiving a WAP push message in my phone.I know that NOTIFICATION_SERVICE is i need to be used. But i don’t know how to use this. Please help me to overcome this problem. I am able to receive the message in my phone and it is printing in the log correctly. Written some code for showing the notification but it is not working. Attaching the code along with please have a look on it and expecting a proper guiding on this.

private void showNotification(String text,Context con) {

    Notification n = new Notification();

    n.flags |= Notification.FLAG_SHOW_LIGHTS;
    n.flags |= Notification.FLAG_AUTO_CANCEL;

    n.defaults = Notification.DEFAULT_ALL;

    n.icon = R.drawable.ic_sms_wap;
    //n.when = System.currentTimeMillis();

    // Simply open the parent activity

    // Change the name of the notification here
    //n.setLatestEventInfo(this, NOTIF_TITLE, text, pi);

    mNotifMan.notify(NOTIF_CONNECTED, n);
}
  • 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-22T20:26:27+00:00Added an answer on May 22, 2026 at 8:26 pm

    hard to answer without knowing exactly what your problem is (ie do you get an error etc..) but you could try this:

    private void showNotification(String text,Context con) {
         if (mNotifMan==null) {
              mNotifMan=(NotificationManager) con.getSystemService(NOTIFICATION_SERVICE);
         }
        Notification n = new Notification(R.drawable.ic_sms_wap,text,System.currentTimeMillis());
    
        n.flags |= Notification.FLAG_SHOW_LIGHTS;
        n.flags |= Notification.FLAG_AUTO_CANCEL;
    
        n.defaults = Notification.DEFAULT_ALL;
    
       // n.icon = R.drawable.ic_sms_wap;
       // n.when = System.currentTimeMillis();
    
        // Simply open the parent activity
    
        // Change the name of the notification here
        //n.setLatestEventInfo(this, NOTIF_TITLE, text, pi);
    
        mNotifMan.notify(null,NOTIF_CONNECTED, n);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i want to show the notification in the status bar after posting the notification
I want to show notification on my website using Pines Notify jQuery plugin but
I want show annotation view (above one of my pin) after load map. For
I want to show water mark on a text field but i dont want
I want to show activity indicator while sending and receiving synchronous asihttprequest from server.
After complete of asynchronous call to WCF service I want set success message into
I am show a download notification to indicate the download percentage i want to
I have a <rich:fileUpload> component and I want to show a notification when a
In my android project I need to show the notification when the certain event
i want to show notification in my web application like messegers have (gtalk,yahoo,msn) in

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.