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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:02:31+00:00 2026-05-23T18:02:31+00:00

I’m having a weird problem with notifications. I have created an on going notification,

  • 0

I’m having a weird problem with notifications.

I have created an on going notification, and I want to sometimes update the notification and display a new ticker text.

When I create the notification, the ticker text is correctly displayed.
When I update the notification the first time (with the code below), the new ticker text is correctly displayed.
When I update the notification the second time, with exactly the same code and the same arguments as the first time (in particular the same new ticker text), the ticker text is not displayed.

Where is the problem?

Code:

mNotification.tickerText = newTickerText;
mNotification.when = System.currentTimeMillis();
mNotification.setLatestEventInfo(activity, title, message, pIntent); // I don’t think these arguments are relevant, but I can post more code if you want
nm.notify(42, mNotification); // nm is the NotificationManager

Edit:
Ok, I found the cause, Android does not want to display the ticker text again if it is the same as before.
Is there a workaround for that?

Edit #2:
My application is a multiplayer game, I have to keep a network socket open during the time the user is connected.
But I do not want to abruptly disconnect the user when he receives a new SMS and wants to read it (for example). What I want is to have the on going notification saying something like “You will be disconnected in 30 seconds”.
I have the problem above when the user is connected, leave the application, come back less than 30 seconds after, and then leave the application again. I repeatedly flash the same message only if the user repeatedly leaves and come back to my application (which shouldn’t occur often, I guess)

Do you think this could harass the user? What should I do instead?

  • 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-23T18:02:32+00:00Added an answer on May 23, 2026 at 6:02 pm

    Is there a workaround for that?

    Have meaningfully different text that the user will value. Do not harass the user by repeatedly flashing the same message.


    UPDATE based on edit

    What I want is to have the on going notification saying something like “You will be disconnected in 30 seconds”.

    That’s fine.

    I have the problem above when the user is connected, leave the application, come back less than 30 seconds after, and then leave the application again.

    The user came back to your activity, which is where you should be canceling the Notification, in which case you will have no problem re-displaying the same ticker message.

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

Sidebar

Related Questions

This is a really weird problem that I have been having. When I download
This is a weird problem I have started having recently. My team is developing
I'm new to Ruby, so I'm having some trouble understanding this weird exception problem
Having a weird issue. I'm new to Macs and have a windows VM that
I am having a weird problem. I read a text file then I split
I am having weird problem with Programmatically created UIToolbar and UIWebView UIWebView frame size
I'm having a weird problem, I have the following code in my page.php template
i am having a weird problem with uialert views. i have several alerts are
I'm having a weird problem. I have this code $topic contains 海賊_(ONE_PIECE) from URI
I'm having quite a weird problem here. I have just pasted the Yii folder

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.