BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-28-2009, 01:47 PM   #1 (permalink)
New Member
 
Join Date: Aug 2009
Model: 7100T
PIN: N/A
Carrier: asd
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Make Push alert, how?

Please Login to Remove!

Hello,

how can i open the App when a push arrive?

h t t p : / /w w w.blackberry.c o m/DevMediaLibrary/view.do ? name= push

In this video the app is closed, a push arrives, an alert dialog pops up and the app open itself ...

But i need this in java ....
Offline  
Old 08-28-2009, 02:59 PM   #2 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8330
PIN: N/A
Carrier: NA
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am also interested into this.do we need a MDS plugin for Java?
Offline  
Old 08-29-2009, 06:12 AM   #3 (permalink)
New Member
 
Join Date: Aug 2009
Model: 7100T
PIN: N/A
Carrier: asd
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

short[] tune = new short[2];
tune[0]= 500;
tune[1]= 2000;
int volume = 100;
Alert.startAudio(tune, volume);
Alert.startVibrate(2000);
synchronized(Application.getEventLock()){ UiEngine ui = Ui.getUiEngine();
Screen screen = new Dialog(Dialog.D_OK, "Look out!!!",
Dialog.OK, Bitmap.getPredefinedBitmap(Bitmap.EXCLAMATION), Manager.VERTICAL_SCROLL);
ui.pushGlobalScreen(screen, 1, UiEngine.GLOBAL_QUEUE);
}
Alert.stopAudio();
Alert.stopVibrate();

this works ... but is there an possibility to get the app in the forground
Offline  
Old 08-29-2009, 10:58 AM   #4 (permalink)
New Member
 
Join Date: Aug 2009
Model: 8330
PIN: N/A
Carrier: NA
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

http: //na.blackberry.com/eng/developers/rapidappdev/eolnotice.jsp
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.