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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

VINTAGE LEICA WILD T1010 FOR SURVEYOR TOTAL STATION WILD GDF22 SWITZERLAND MADE
$199.99
VINTAGE LEICA WILD T1010 FOR SURVEYOR TOTAL STATION WILD GDF22 SWITZERLAND MADE pictureMSA Skullgard Full Brim Vintage Hard Hat, New MSA Fas-Trac III Suspension Liner
$55.0
MSA Skullgard Full Brim Vintage Hard Hat, New MSA Fas-Trac III Suspension Liner  picture2 Vintage Computer Chairs
$95.0
2 Vintage Computer Chairs pictureAlemite Volume Pump, Tractor Pump, Model Number 6521, 1930s Vintage
$71.79
Alemite Volume Pump, Tractor Pump, Model Number 6521, 1930s Vintage pictureVintage UNIMAX Switch 2LB1-1C
$50.0
Vintage UNIMAX Switch 2LB1-1C picture






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