Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 330
Registered: ‎02-25-2009
My Device: Not Specified
Accepted Solution

Dialog.ask

how to use this

 

public static int ask(String message,
Object[] choices,
int defaultChoice)

 any psudo code 

Highlighted
Developer
Posts: 745
Registered: ‎01-04-2009
My Device: 8300, 8800, 8700f, 9000

Re: Dialog.ask

public void a(){ UiApplication.getUiApplication().invokeLater(new Runnable(){ public void run(){ Object[] choices = new Object[] {"cancel", "exit", "to background" }; int result = Dialog.ask("really quit?", choices, 1); switch (result) { case 1: System.exit(0); case 2: UiApplication.getApplication().requestBackground(); } }}); }