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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:08:47+00:00 2026-06-04T04:08:47+00:00

Urban Airship recommends creating a custom notification with CustomPushNotificationBuilder if you want to make

  • 0

Urban Airship recommends creating a custom notification with CustomPushNotificationBuilder if you want to make any modifications to the status bar notification, including trivially changing the icon.

Unfortunately, using a RemoteView for notifications carries many unwanted implications with it related to custom manufacturer and/or platform-specific skins, including text colors and references to private resources (for instance @*android:drawable/notify_panel_notification_icon_bg_tile on Honeycomb/ICS).

There must be a simple way to swap the icon without using RemoteView. How?

  • 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-04T04:08:49+00:00Added an answer on June 4, 2026 at 4:08 am

    I found that by overriding BasicPushNotificationBuilder, I can set the icon quite trivially:

    BasicPushNotificationBuilder nb = new BasicPushNotificationBuilder() {
        @Override
        public Notification buildNotification(String alert,
                Map<String, String> extras) {
            Notification notification = super.buildNotification(alert,
                    extras);
            // The icon displayed in the status bar
            notification.icon = R.drawable.notification;
            // The icon displayed within the notification content
            notification.contentView.setImageViewResource(
                    android.R.id.icon, R.drawable.notification);
            return notification;
        }
    };
    // Set the custom notification builder
    PushManager.shared().setNotificationBuilder(nb);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use Urban airship to deliver Push notification to Android . I
I want to Use Trial version of Urban Airship for Push notification . On
I have my app in Appstore and it has Urban Airship Push notification implemented.
I have implemented Apple Push Notification service using Urban Airship and successfully received the
In my application i used Urban Airship for push Notification, But Urban Airship push
I want to use push notifications on iphone through Urban Airship, and i'm using
I am using Urban Airship to test push notification and it went well. My
I am using Urban Airship and Apple to delivery push notification. There are some
I use the urban airship mail push notification service , i created some sample
I am using Urban airship for sending push notification, and i successfully achieved this.

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.