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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:35:05+00:00 2026-05-31T02:35:05+00:00

Some of my users are reporting that the notification is not being displayed when

  • 0

Some of my users are reporting that the notification is not being displayed when it should. It works fine on all emulators and my phone.. any ideas?

// configure the intent
    if (SongList.theclass == "SongList") {
        playIntent = new Intent(MyService.this, SongList.class);
    } else if (SongList.theclass == "Favorites") {
        playIntent = new Intent(MyService.this, Favorites.class);   
    } else if (SongList.theclass == "TopTen") {
        playIntent = new Intent(MyService.this, TopTen.class);  
    } else {
        playIntent = new Intent(MyService.this, SongList.class);
    }

    playIntent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);       

    final PendingIntent pendingIntent = PendingIntent.getActivity(MyService.this, 0, playIntent, 0);

    notification = new Notification(R.drawable.playicon, "Buffering...", System
            .currentTimeMillis());

    notification.contentView = new RemoteViews(getPackageName(), R.layout.custom_notification2);
    notification.contentIntent = pendingIntent;     
    if (SongList.bitmap != null) {
        notification.contentView.setImageViewBitmap(R.id.notifimage, SongList.bitmap);
    } else {
        notification.contentView.setImageViewResource(R.id.notifimage, R.drawable.icon);
    }
    notification.contentView.setTextViewText(R.id.notiftitle, "Now Playing");
    notification.contentView.setTextViewText(R.id.notiftext, songname);
    notification.flags = notification.flags | Notification.FLAG_ONGOING_EVENT;

    mNotificationManager = (NotificationManager) getApplicationContext().getSystemService(
            Context.NOTIFICATION_SERVICE);
    mNotificationManager.notify(4, notification);

I got my hands on a phone this happens to and when I comment out this line, the notification will display again.. any ideas based off this?

if (SongList.bitmap != null) {
        notification.contentView.setImageViewBitmap(R.id.notifimage, SongList.bitmap);
    } else {
        notification.contentView.setImageViewResource(R.id.notifimage, R.drawable.icon);
    }

How I create the bitmap:

drawable = songimage.getDrawable();
                    bitmap = Bitmap.createBitmap(screenWidth, screenWidth, Bitmap.Config.ARGB_8888);
                    //bitmap = bitmap.copy(Bitmap.Config.ARGB_8888, true); // workaround
                    Canvas canvas = new Canvas(bitmap);
                    drawable.setBounds(0, 0, screenWidth, screenWidth);
                    drawable.draw(canvas);
  • 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-31T02:35:05+00:00Added an answer on May 31, 2026 at 2:35 am

    Changing ARGB_8888 to 565 fixed this

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

Sidebar

Related Questions

Some of our Japanese users are reporting that they are not able to change
I am currently working with some users that do not have the .NET Framework
Some users of our app are reporting that ringtones fail to load as expected.
Some users are reporting that my site is too slow And i think background
On the project I'm helping to revive, iSoul , some users are reporting an
i have a query that returns some users related to a specific user (Bob).
2 types of users exist investors and managers. Some users (investors) should be able
I have some ad-hoc reporting users hitting some SQL Server views. Occasionally the read
Users have been reporting problems/crashes/bugs that I can't reproduce on my machine. I'm finding
Context: We have some users reporting issues with a file upload feature in our

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.