How can I use the default dialog icons in my custom Blackberry dialog box?

I am writing a special dialog box to display the status of a long operation and would like to use the small timer icon (small square clock on OS> = 4.6) that was used in the BB dialogs.

How can I use this graphic in my dialog box?

I am already familiar with layout managers and the like, I just don't know where the bitmap is, or if there is an API call to get the default theme icons like this.

+4
source share
1 answer

In the Bitmap class, there is a HOURGLASS constant , which can be used with the getPredefinedBitmap() method .

Example:

 Manager.add(new BitmapField(Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS))); 

This was pretty well hidden inside javadocs, so I decided that I would answer my question if anyone else should know.

+9
source

All Articles