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


BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$174.84



BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL picture

BLACKBERRY MEAD Advertising Vinyl Banner Flag Sign Many Sizes MEDIEVAL

$118.19



FARM FRESH BLACKBERRIES CLEARANCE BANNER Advertising Vinyl Flag Sign INV picture

FARM FRESH BLACKBERRIES CLEARANCE BANNER Advertising Vinyl Flag Sign INV

$174.84



Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh picture

Blackberry Advertising Banner Vinyl Mesh Sign Fruit Vegetable Berry Farm Fresh

$219.95



GM WA549F, Blackberry Pearlcoat picture

GM WA549F, Blackberry Pearlcoat

$285.95



Toyota 3N0, Blackberry Crush Metallic picture

Toyota 3N0, Blackberry Crush Metallic

$285.95







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