BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-11-2008, 04:36 AM   #1
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default How To Provide an alert like sound

Please Login to Remove!

How can I create a function that will produce sound when invoked ?

I am looking for creating an alert similar to the one created when the battery is low etc
Offline  
Old 07-11-2008, 04:57 AM   #2
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

net.rim.device.api.system.Alert
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 07-11-2008, 05:04 AM   #3
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Hi Jonathan

Thanks very much

Can you please say what function should I invoke

Would it be possible to create a Vibrate mode too ?
Offline  
Old 07-11-2008, 05:39 AM   #4
jfisher
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Default

don't be lazy and read the javadoc before asking questions: /docs/api/net/rim/device/api/system/Alert.html

it's the simplest class in the api:

Alert.startAudio(short[] tune, int volume);
Alert.startVibrate(int duration);
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 07-11-2008, 06:13 AM   #5
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

vibration would be handled using the notificator class. there is an own section in the developer guide...

at least you are not writing all caps
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 07-11-2008, 06:19 AM   #6
MobileDeveloper
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Default

Where can I find this doc ?



/docs/api/net/rim/device/api/system/Alert.html

I searched online for it but couldn't find it

I couldn't find any help on either Vibrate or startAudio in the RIM developer section either

Quote:
Originally Posted by jfisher View Post
/docs/api/net/rim/device/api/system/Alert.html

it's the simplest class in the api:

Alert.startAudio(short[] tune, int volume);
Alert.startVibrate(int duration);
Offline  
Old 07-11-2008, 06:32 AM   #7
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Default

Point your browser at: file:///<JDE Install Dir>/docs/api/index.html where <JDE Install Dir> is something like: C:/Program%20Files/Research%20In%20Motion/BlackBerry%20JDE%204.2.1

Or if you are using the JDE to do the development click on Help->API Reference
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Schneider Electric Energy Server EBX510 Server For Energy Management- picture

Schneider Electric Energy Server EBX510 Server For Energy Management-

$4350.00



5 Pack Server Note Pads, Guest Check Books for Servers, Guest Checks Notepad for picture

5 Pack Server Note Pads, Guest Check Books for Servers, Guest Checks Notepad for

$9.88



Server Note Pads Paper, Guest Check Books, Total 1000 Sheets, 10 Pads, 100 Sheet picture

Server Note Pads Paper, Guest Check Books, Total 1000 Sheets, 10 Pads, 100 Sheet

$29.92



POLYCOM RealPresence Collaboration Server RMX 2000 CNTL 2000 - Control Module picture

POLYCOM RealPresence Collaboration Server RMX 2000 CNTL 2000 - Control Module

$900.00



Server SLMDFD WM 88750 Slimlineâ„¢ 2 liter single canister wall-mount food dispens picture

Server SLMDFD WM 88750 Slimlineâ„¢ 2 liter single canister wall-mount food dispens

$80.00



Discover Guest Check Presenters - 50 Books - Restaurant Server Books Double... picture

Discover Guest Check Presenters - 50 Books - Restaurant Server Books Double...

$44.50







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