Skip to main content
Samsung Developer Program

Control text and graphics content

Your Android™ app can specify and format text for primary and secondary sections: titles, subheaders, bodies, and icon lines.

Both primary and secondary sections support the following tags to format text:







<font color=”#RRGGBBAA”></font>

<font color=”#RRGGBB”></font>

<font color=”#RGBA”></font>

<font color=”#RGB”></font>


#[Red-Green-Blue-(Alpha) code]

Hexadecimal color specified with an RGB value and an optional alpha channel

[templateName].[textParameter]("[Text Content]");
[templateName].[textParameter]("<b>[Text]</b> <i>[Content]</i>");

To specify the body text in a secondary section:

mySecondarySection.setBody("<font color=\”#00F\”><i>The <b>big</b> question</i> 
                                          surrounding the next album</font> is <b>whether ...</b>");

The big question surrounding the next album is whether ...

Controlling graphics content

Rich notification supports using JPG and PNG image files for backgrounds and icons. Image bitmaps must be declared through the Android API before image assets are declared. Image assets must be declared, through the Rich Notification API, before being specified for use in a rich notification.



Creates an image asset of the specified application context, image asset name, and image bitmap name.




Context in which the image asset is to be created.

Declared name of the image asset.

Name of the image bitmap.


  • Was this article helpful?