Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
HighFlyer
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Sep 2003
Default Disabling Phone

I really have two problems :

1- How can I disable the two phone buttons on the XDA. The green and the red buttons). Programmatically AND/OR physically?

2- How can disable the phone programatically. (by the way I am using EVB). So that when I am running my software in EVB any incomming calls would be ignored

Many Thanks for any suggestions
 
Zmija9
Old
#2  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Oct 2003
Location: Ljubljana, Slovenia
You could kill cprog.exe process. Unfortunatelly something else start it few minutes later. But while the cprog.exe process isn't runnign on the system the phone is dissabled

Regards,
 
nitan_sehgal
Old
#3  
Junior Member
Thanks Meter 0
Posts: 3
Join Date: Aug 2004
Default put device in flight mode

Hi
You can put device in flight mode when Ur application runs and when you kill Ur application make sure to switch the flight mode Off. Device will not receive any radio signal. Other thing you could do is to turn off the recieving radio so that you can only transmit but couldnt receive any signal.

Hope this helps.
Cheers
Nitan Sehgal
 
mamaich
Old
#4  
Recognized Developer
Thanks Meter 149
Posts: 1,100
Join Date: Apr 2004

 
DONATE TO ME
Quote:
Originally Posted by Zmija9
You could kill cprog.exe process. Unfortunatelly something else start it few minutes later. But while the cprog.exe process isn't runnign on the system the phone is dissabled
You are incorrect. The phone is still enabled, it still receives SMS and can use GPRS. Programs like KSE TrueFax can use it to make calls/send faxes. You only cannot receive/make calls manually. To kill cprog and prevent it from running you should register VK_HANGUP and VK_ANSWER hotkeys. Here are their defines:
#define VK_HANGUP 0x73 // VK_F4
#define VK_ANSWER 0x72 // VK_F5
Look into KillApp.cpp from CryptoPhone source code for an example.
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...