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


Mitsubishi Control Board DM00N649.  SM76A127G02 . Ductless unit 47-0910KR (C64) picture

Mitsubishi Control Board DM00N649. SM76A127G02 . Ductless unit 47-0910KR (C64)

$120.00



Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



3D MULTIMEDIA VIDEO CARD C64/V2 1MB picture

3D MULTIMEDIA VIDEO CARD C64/V2 1MB

$94.05



Windsor Commodore Fastraction Carpet Cleaner CMD picture

Windsor Commodore Fastraction Carpet Cleaner CMD

$1995.00



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00



Vintage Commodore Green Line Computer Calculator Custom GL-997R Made In The UK  picture

Vintage Commodore Green Line Computer Calculator Custom GL-997R Made In The UK

$27.99







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