Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
johnEllisDM
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 13
Join Date: Dec 2003
Location: Phoenix, AZ
Default cprog.exe and missed calls

Ok... I think i need some help here. I wrote an app that would screen save and trap all the keys (even the red and green phone keys). I did this according to the following post.

http://www.xda-developers.com/forum/...pic.php?t=3665

Then i wrote some tapi stuff to listen for an incoming call and restart cprog.exe after the first ring. Only problem is, cprog.exe seems to need the LINEDEVSTATE_NUMCALLS (0x0800) notification or it will not log the call as missed. It can never get that notification, cause that is the first thing i can trigger off of. So... cprog.exe does not log the call as missed. If i answer the call, then it is logged...

I was hoping i could do one of the following:

1. Write the missed call to the log myself.
2. find a way to trap the keys without killing cprog.exe
3. Fake a LINEDEVSTATE_NUMCALLS (0x0800) dev state change message to cprog.exe

or worse case (which i don't like at all)
4. Keep my own call log which means i will have to write my own call log app.

or even worse still...
5. Just be happy with the screen saved, but the keys unlocked and hope that i don't make 3 hour "prank" calls of me singing along in the car to the radio on some friend's voice mail.

Any help here would be greatly appreciated. Also, if anyone needs to see the code that i used to detect the ringing and stuff... let me know... i can post it up.

thanks,

John
 
belial
Old
#2  
Member
Thanks Meter 0
Posts: 42
Join Date: Apr 2003
Default Re: cprog.exe and missed calls

Being as you know you missed the call, you could just put the relevant information into the call log database.
 
johnEllisDM
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 13
Join Date: Dec 2003
Location: Phoenix, AZ
Thanks... i didn't realize that existed, but i figured something was there like that.

Unfortunately for this app... but fortunately for everything else, i upgraded to WM2003... so now, i don't need this as much because the now the GPRS stays connected even in suspend mode (which locks the keys).

It also seems that 2003 behaves differently with respect to screen power. It seems 2003 automatically turns screen power back on in the event of a window focus change... so my app needs to be rethought now.

thanks for the help,

John
 
michar
Old
#4  
Member
Thanks Meter 0
Posts: 75
Join Date: Dec 2003
Default Hi John

Did you ever find how to add/insert your call into the log?
It seems that ther is no API to do it (there is an API to query the log...).

Any thoughts?
 
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...