Click here to get back home

How to disable incoming call screen?

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to disable incoming call screen? dav.olivares 07-24-2007
Get Chitika Premium
Posted by dav.olivares on July 24, 2007, 5:55 am
Please log in for more thread options
I need to make my own screen for a incoming phone call with caller
data that I need, but I can not hide the standard caller window and my
application keeps behind. I tried to close the caller screen but then
the phone hang off:


<DllImport("coredll.dll")> _
Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal
msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As
Integer
End Function
Private Const WM_CLOSE As Integer = &H10
Public Const WM_HIDE = 0

Friend WithEvents IncomingCall As New
SystemState(SystemProperty.PhoneIncomingCall)

Private Sub CheckCallStatus(ByVal Sender As Object, ByVal Args As
ChangeEventArgs) Handles IncomingCall.Changed
PhoneNumber =
SystemState.GetValue(SystemProperty.PhoneIncomingCallerNumber)
Me.txtLog.Text = Now() & "-" & PhoneNumber & vbCrLf &
Me.txtLog.Text

Dim hwnd As IntPtr = GetForegroundWindow()


SendMessage(hwnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero)
Me.Show()

End Sub


Posted by kaan.toker on August 21, 2007, 8:49 am
Please log in for more thread options
On 24 Temmuz, 12:55, dav.oliva...@gmail.com wrote:
> I need to make my ownscreenfor a incoming phone call with caller
> data that I need, but I can not hide the standard caller window and my
> application keeps behind. I tried to close the callerscreenbut then
> the phone hang off:
>
> <DllImport("coredll.dll")> _
> Private Shared Function SendMessage(ByVal hWnd As IntPtr, ByVal
> msg As Integer, ByVal wParam As IntPtr, ByVal lParam As IntPtr) As
> Integer
> End Function
> Private Const WM_CLOSE As Integer = &H10
> Public Const WM_HIDE = 0
>
> Friend WithEvents IncomingCall As New
> SystemState(SystemProperty.PhoneIncomingCall)
>
> Private Sub CheckCallStatus(ByVal Sender As Object, ByVal Args As
> ChangeEventArgs) Handles IncomingCall.Changed
> PhoneNumber =
> SystemState.GetValue(SystemProperty.PhoneIncomingCallerNumber)
> Me.txtLog.Text = Now() & "-" & PhoneNumber & vbCrLf &
> Me.txtLog.Text
>
> Dim hwnd As IntPtr = GetForegroundWindow()
>
> SendMessage(hwnd, WM_CLOSE, IntPtr.Zero, IntPtr.Zero)
> Me.Show()
>
> End Sub

Hi,

If you find the solution please share with me please.

Regards
Kaan Toker


Posted by Atul on October 6, 2007, 1:39 pm
Please log in for more thread options
Hi ,
I m also serching for same things.. If u get a good solution please share
with me..!
Thanks.
Atul

Similar ThreadsPosted
How to disable incoming call info - reg June 17, 2005, 2:09 am
Help! How to create an entry that goes directly into "Missed Call" or "Incoming Call" page? December 24, 2007, 6:06 am
Detect incoming call in C#.net June 7, 2005, 6:21 am
how to detect an incoming call? December 5, 2005, 3:18 pm
incoming call notification January 19, 2006, 1:43 am
how reject incoming call ? March 26, 2006, 2:13 pm
How to get notification on new sms or incoming call May 23, 2006, 8:43 am
emulator incoming call in WM5.0 July 13, 2006, 3:29 am
How to hang up a incoming call October 6, 2007, 7:57 am
how to delay incoming call alert June 23, 2005, 3:05 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap