IT Community - Software Programming, Web Development and Technical Support

Can we able to mute the incoming ring when my custom app is running?

This is a discussion on Can we able to mute the incoming ring when my custom app is running? within the Mobile Software Development forums, part of the Software Development category; Hi, I'm writing a custom Caller ID screen. From this forum, it's found how to replicate the "...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-25-2007, 01:13 AM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Question Can we able to mute the incoming ring when my custom app is running?

Hi, I'm writing a custom Caller ID screen. From this forum, it's found how to replicate the "answer" & "end" call action by the sending a pair of keyboard events. But how about the "mute ring" and "stop vibration" action? Can it be achieved by using any API call? Thanks in advance
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-25-2007, 01:15 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: Can we able to mute the incoming ring when my custom app is running?

Hi friend, If you application is built for Windows Mobile 5.0 or later version OS, you can achieve this with using SndSetSound function. Code Snippet
SNDFILEINFO fi;
fi.sstType = SND_SOUNDTYPE_VIBRATE;
// SND_SOUNDTYPE_ON
// SND_SOUNDTYPE_NONE
SndSetSound(SND_EVENT_ALL, &fi, TRUE);
For more information and sample code, you can find it in MSDN library:
SndSetSound: SndSetSound
SNDFILEINFO: SNDFILEINFO
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom class in WinRunner vigneshgets Testing Tools 0 11-06-2007 10:53 PM
custom objects simplesabita Testing Tools 1 08-28-2007 06:31 AM
Custom Search Engine Murali Google 0 07-11-2007 08:08 AM
How important is custom skin? spid4r HTML, CSS and Javascript Coding Techniques 2 03-10-2007 06:22 AM
Tossing my hat into the ring econwriter5 Introductions 0 03-07-2007 05:54 PM


All times are GMT -7. The time now is 12:22 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0