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


Johnson Controls York Solution XTI-033X045-NAFA146A Air Make Up Handling Unit picture

Johnson Controls York Solution XTI-033X045-NAFA146A Air Make Up Handling Unit

$4500.00



New In Box JOHNSON CONTROLS F61KB-11C Water Flow Switch picture

New In Box JOHNSON CONTROLS F61KB-11C Water Flow Switch

$49.50



Johnson Controls A421GBF-02C Type 1 Electronic Temperature Controller picture

Johnson Controls A421GBF-02C Type 1 Electronic Temperature Controller

$91.71



Johnson Controls MS-VMA1630-1 VMA ProgrammableVAV Box Controller picture

Johnson Controls MS-VMA1630-1 VMA ProgrammableVAV Box Controller

$40.00



Johnson Controls MAP1850 Gateway TL-MAP1850-0E picture

Johnson Controls MAP1850 Gateway TL-MAP1850-0E

$449.99



Johnson controls Map-1810 picture

Johnson controls Map-1810

$525.00







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