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

1PC USED The ACS550 cpu board / control panel / board OMIO-01C
$140.99
1PC   USED The ACS550 cpu board / control panel / board OMIO-01C pictureMisonix Fisher Scientific XL2020 Sonicator Ultrasonic Processor
$379.98
Misonix Fisher Scientific XL2020 Sonicator Ultrasonic Processor pictureNortel Meridian Mail Processor 8 Port VP8 NT6P08AA Card
$29.0
Nortel Meridian Mail Processor 8 Port VP8 NT6P08AA Card picture1PC New Allen Bradley 1769-L18ERM-BB1B CompactLogix Processor 1769L18ERMBB1B
$1580.0
1PC New Allen Bradley 1769-L18ERM-BB1B CompactLogix Processor 1769L18ERMBB1B picture1PC NEW INTEL D8087-1 CDIP-40 Arithmetic Processor
$14.0
1PC NEW INTEL D8087-1 CDIP-40 Arithmetic Processor picture






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