Blackberry - Show Dialog on startup and wait until dialog closes
问题 I tried a lot, now I need your help. What I want to do is the following: When the Blackberry app starts a yes/no dialog pops up. If user chooses "yes", do something and AFTER that continue with the startup. If user chooses "no" exit the app. I wrote an SSCCE which should vibrate if you choose "yes" and AFTER THAT you should hear a sound. Of course I know, that the code continues after the Alert.vibrate() is called and it doesn't wait for the vibraste to finish. Anyway, it is just an example.