BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-11-2008, 04:36 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2008
Model: 8100
PIN: N/A
Carrier: Vodafone
Posts: 134
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
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  




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