Display an application control message to a user
A BlackBerry® device application can include more than one registered
ReasonProvider
.The BlackBerry device application
displays messages from
ReasonProviders
in the order that each
ReasonProvider
registers with the BlackBerry
device application. For example, if a BlackBerry device application registers
ReasonProvider
A before
ReasonProvider
B, the BlackBerry device application displays the message from
ReasonProvider
A, followed by the
message from
ReasonProvider
B.
1.
Import the
net.rim.device.api.
applicationcontrol.ReasonProvider
interface:
2.
In your implementation of the
ReasonProvider.getMessage(int permissionID)
method, return a
String
value that contains the message to display to a BlackBerry user.
Development Guide
Access control messages
69