SystemProperty.PhoneIncomingCall capture - Windows Mobile Development and Hacking General

Hi.
I'm using SystemProperty.PhoneIncomingCall to capture event on incoming call. (C#)
That works perfect when the application is on focus.
But when I'm switching to another program or to the desktop (By clicking the "End Call" button or by hiding my app screen), my application doesn't react to the event, although I can see it is still running (in the task-manager).
Any idea why it happens and how can I fix this issue?
Thanks!

Can anybody help us. I too have a similar problem
Thanks

Ever get an answer? EnableApplicationLauncher doesn't seem to work.

Related

Record Button not working :-(

Hi All,
I have a problem with my record button my my XDA II, when I push the button nothing happens....
I have tried changing the program that launches and it works 100%, for example if I say load up notes when pushed it loads up a new note.
But if I say load up recorder it does not load it up, nothing happens... I don't like using notes for recording as it is recorded in a note file and I can't get the recording out to a wave file....
I also liked it that when holding the button it automaticly use to record so you did not have to use the sylus at all...
Does any one know how I can fix the problem I am having?
I know I can asign to load up "Note" and then just close the not hit the Tape looking Icon then hit the record button and it will do the same thing but would be great to get it working back the way it should be...
Many thanks in advance!!!
I found out that it was Battery Pack Pro 1.01 that was causing the problems, as it was using its own "Power Buttons"... Turned off it's "Power Buttons" option and every thing seems to work 100% now
great!
fudgebottom you are great!!
i was just loosin my mind!!
thank you!
let's hope that battery pack's team resolve this bug!
ciao

Using phoneAlarm without the stylus? Is there a better app?

I installed and love phoneAlarm. The one problem I have with it is that you can't navigate to it's messages/missed calls/voicemail/emails icons with the d-pad. I like having it show me what I've missed, but I don't want to have to get out the stylus everytime i want to view one of the missed items. Is there a workaround for this or possibly a different app that will do what I want?
Also, is there a way to put phoneAlarm above the date on the today screen? If not, is there a different (1-line if possible) plugin that will show the date/time?
Thanks!
--upen
You could always use the left soft button. When you get a message or missed call it turns into the notification button. You could also send your request in to the guy who write phone alarm. the link to the beta forum is
http://www.pocketmax.net/smf/index.php?topic=1790.0

MobileMute - Mute/Unmute calls via hardware button

MobileMute is a little program that allows you to mute/unmute phone calls via a hardware button. It will also launch any other program of choice if a call is not in progress (that way your hardware button doesn't get wasted). I had searched for this functionality for while without much luck. So, I decided to write a quick little app to do it for me.
For those of you who had used the first version of this, you may have noticed the slight delay when running the program. This was because it was designed to start, do its thing, and then exit. That being said, it took a second for the program to initialize on startup which resulted in a delay.
I have changed this version to try to figure out what button you have it mapped to. If it can figure that out, it will stay active listening for future pushes to that button. If it can't figure out what button is mapped, it will act just like the first version (which is still functional, just with a slight delay).
I have also added a simple configuration utility for changing the settings (located in Program Files/itsallwright/MobileMute).
I originally developed this for my Kaiser, therefore it was originally posted in the Kaiser section. But, since it can work on other devices, I am posting the new version here. The only problem is that different devices have different button IDs. I will post some instructions for getting your button IDs on the devices that the default Kaiser button IDs don't work for.
I didn't test this version for as long as I tested the original. So if you have any weird problems with it, please let me know.
Original version is posted here http://forum.xda-developers.com/showthread.php?t=386810
Edit: Added MobileMute_v2.1 which adds support for more devices and Kaisers with non-standard ROMS.
Enjoy,
Jay
Button IDs
Here are some instructions to help find the button IDs.
If you do not have Visual Studio or another spy program, I saw a post here http://forum.xda-developers.com/showthread.php?t=251955 that might be able to help.
1) Open Spy Program and connect to device
2) Expand "Desktop Window"
3) Expand all child windows titled "Phone" (or whatever your "Phone" title is)
4) Locate the "Phone" window that has a child named "Mute" (or whatever your "Mute" text may be). If you can't find the correct Phone window, it is possible that is hasn't been started since the last reboot. To start it, make a quick call until you get the call status and hang up. Now you should be able to locate the window.
5) The next steps should be made while you are on a call, so make a call to Voicemail, yourself, or a patient friend . After the call is connected, make sure you are on the "Call Status" screen (the one that has the mute button on the screen).
6) Highlight the "Phone" window found previously and click the Messages button to view messages for that window. You will probably see messages continually being posted to the window.
7) Click "Menu" at the bottom and then click "Mute" (Note: do not click the "Mute" button on the screen as that will not give us the information we need.)
8) Click "Menu" at the bottom and then click "Unmute" (Same note as above applies)
9) Disconnect the call. The message window should stop getting messages.
10) In the message window, find all messages titled "WM_COMMAND" (there should only be 2)
11) The WPARAM value of the first WM_COMMAND message is the "Mute" button ID (Put it into a calculator to convert it to a decimal number)
12) The WPARAM value of the second WM_COMMAND message is the "Unmute" button ID​
If you do find your IDs and confirm they work, please post them here with your device and ROM info to save others with that device the trouble.
Thanks,
Jay
just use volume up/down to mute incoming calls...
zuNN said:
just use volume up/down to mute incoming calls...
Click to expand...
Click to collapse
If I'm not mistaken the purpose of this app is not to mute the ringer during an incoming call but to mute the mic during an active call. Also when not in a call it will launch your app of choice so when not in a call you're not occupying an otherwise usable button.
jhw549 said:
If I'm not mistaken the purpose of this app is not to mute the ringer during an incoming call but to mute the mic during an active call. Also when not in a call it will launch your app of choice so when not in a call you're not occupying an otherwise usable button.
Click to expand...
Click to collapse
That is exactly what it is for. It is very usefull if you have to attend a lot of conference calls where you are not required to participate 100% of the time.
Jay
zuNN said:
just use volume up/down to mute incoming calls...
Click to expand...
Click to collapse
This won´t work with my Kaiser with M-Diamond 1.4 ROM.
MobileMute_v2 with HTC Fuze
I have tried version MobileMute_v2 with the HTC Fuze and it does not appear to work. It will launch the program defined in the settings when not on a call, but will not mute the call, when launched while on a call.
I am launching this from the PTT button through the methods described in another thread. I created a shortcut short_ptt.lnk, which launches this application.
I have also navigated directly to the executable and run it while on a call and get identical results.
I am going to uninstall version 2 and try installing version 1.
HTC Fuze and MobileMute
I have now tested the original with the HTC Fuze with similar unsuccessful results.
sounds like a great app ill give it a go on my hermes tonight. thanks for sharing!
JVH3 said:
I have tried version MobileMute_v2 with the HTC Fuze and it does not appear to work. It will launch the program defined in the settings when not on a call, but will not mute the call, when launched while on a call.
I am launching this from the PTT button through the methods described in another thread. I created a shortcut short_ptt.lnk, which launches this application.
I have also navigated directly to the executable and run it while on a call and get identical results.
I am going to uninstall version 2 and try installing version 1.
Click to expand...
Click to collapse
This is most likely because the Fuze button ID for Mute/Unmute is different then the Kaiser.
Have you tried using the steps above to get your button IDs?
-Jay
Mobile Mute and Fuze
I had also tried running the executable directly, not through the remap of the PTT key.
I did that to elliminate the possibility of it being a mapping to a key issue.
This does assume it works when run directly and not from a key.
I suppose it is possible that an exeception is thrown when the program checks what key was pressed to launch it, if there was not key pressed to start it.
As is, with the Fuze, the touch screen has on screen buttons for Mute and Speaker Phone.
I have remapped the long_ptt to Voice Command and the short_ptt to {"\Windows\ctlpnl.exe" cplmain 1} which gives you the lock screen so I can quickly change the timeout. I like it to lock quickly when not running GPS, but not lock at all when running GPS, but this last paragraph is not related to Mobile Mute, other than I no lnger have an available button to map it to.
JVH3 said:
I had also tried running the executable directly, not through the remap of the PTT key.
I did that to elliminate the possibility of it being a mapping to a key issue.
This does assume it works when run directly and not from a key.
I suppose it is possible that an exeception is thrown when the program checks what key was pressed to launch it, if there was not key pressed to start it.
As is, with the Fuze, the touch screen has on screen buttons for Mute and Speaker Phone.
I have remapped the long_ptt to Voice Command and the short_ptt to {"\Windows\ctlpnl.exe" cplmain 1} which gives you the lock screen so I can quickly change the timeout. I like it to lock quickly when not running GPS, but not lock at all when running GPS, but this last paragraph is not related to Mobile Mute, other than I no lnger have an available button to map it to.
Click to expand...
Click to collapse
Check in "/Program Files/itsallwright/MobileMute" for an ErrorLog file. If that file exists and has info, post the contents and I will see if I can figure out what went wrong.
Since it does launch the program you have configured when not in a call, the program at least initializes. If it also launches the program when you are in a call then it can't find the "Phone" window or the "ConnectedText" value. If it appears to do nothing while you are in a call, then it is likely that the Button IDs are wrong.
-Jay
Fuze
A friend of mine with a Fuze let me check it out and I determined why it does not work.
The dialer on the Fuze has Mute/Unmute buttons on the screen, but the buttons do not have text (I suspect it uses seperate Mute/Unmute images instead). That being said, MobileMute determines the Mute State of a call based on the text value of the Mute/Unmute buttons. Therefore, it does not know what command to send.
I am trying to figure out a way to work around this, but in the meantime, I am sorry to say the Fuze is unsupported.
Just as a fyi... the Mute/Unmute button IDs for the Fuze are the same as the Kaiser (21408/21409)
I'll keep you posted on my progress with supporting this device.
-Jay
Trying to use this app on my Mogul/Titan without success. I set it up on the button that would normally be conn mgr, went into cfg and set it to \windows\connmgr.exe
When I go to use the button I get a wait icon, the program launches and hides (still visible in Task Mgr). Opening manually works equally well (not at all).
The tools in the 2nd post don't work ("Class not registered" error).
While in a call the application launches (with a massive delay I might add) then performs its functino properly and mutes the call, no delays after initial launch.
There is no error log in the program's folder.
Help?
jhw549 said:
Trying to use this app on my Mogul/Titan without success. I set it up on the button that would normally be conn mgr, went into cfg and set it to \windows\connmgr.exe
When I go to use the button I get a wait icon, the program launches and hides (still visible in Task Mgr). Opening manually works equally well (not at all).
The tools in the 2nd post don't work ("Class not registered" error).
While in a call the application launches (with a massive delay I might add) then performs its functino properly and mutes the call, no delays after initial launch.
There is no error log in the program's folder.
Help?
Click to expand...
Click to collapse
The initial start of MobileMute does have a delay. That is the reason I created v2 that will stay running. If MobileMute shows in task manager after you run it, then it found the hardware button you have it assigned to and is listening for future presses of that button. Since it does Mute/Unmute the calls, the program is functioning as designed.
As for running "\windows\connmgr.exe". I also cannot run that program (even manually). I don't think it is an app to be used that way. Are you sure you don't actually want to run "\windows\CommManager.exe"?
-Jay
Heh.... umm... oops >.<
That's rather embarassing lol... You're completely right, I picked the wrong exe. It works 100% perfectly now.
I just wish it would hide completely and not show up in my tasks list... I have a tendancy to hit that kill all button rather than pick them out one by one.
thanks. this is a good idea... i'll be using it.
v2.1 with Fuze support
itsallwright said:
A friend of mine with a Fuze let me check it out and I determined why it does not work.
The dialer on the Fuze has Mute/Unmute buttons on the screen, but the buttons do not have text (I suspect it uses seperate Mute/Unmute images instead). That being said, MobileMute determines the Mute State of a call based on the text value of the Mute/Unmute buttons. Therefore, it does not know what command to send.
I am trying to figure out a way to work around this, but in the meantime, I am sorry to say the Fuze is unsupported.
Just as a fyi... the Mute/Unmute button IDs for the Fuze are the same as the Kaiser (21408/21409)
I'll keep you posted on my progress with supporting this device.
-Jay
Click to expand...
Click to collapse
Well, it turns out that the Fuze isn't the only device with that dialer. I recently found a ROM (Phoenix v2) that has touch flo and a similar dialer to the Fuze. I put that ROM on my Kaiser to reproduce this issue on my own.
After quite a bit of research and learning, I found a way to detect the Mute state of a call via TAPI. The Mute/Unmute button text is no longer needed.
I have no way to test with an actual Fuze, but I am pretty confident it will work now. I have added the new version to the original post.
-Jay
I've got v2.1 loaded. Detection on Fuze works, the registry shows mute/unmute id's 21408/21409. I'm using the short_PTT.lnk method. When I press PTT, I can see the titlebar flash 'MoblieMute' text.... but the mic does not mute.
jpn621 said:
I've got v2.1 loaded. Detection on Fuze works, the registry shows mute/unmute id's 21408/21409. I'm using the short_PTT.lnk method. When I press PTT, I can see the titlebar flash 'MoblieMute' text.... but the mic does not mute.
Click to expand...
Click to collapse
When you are not in a call, does it open the configured program (BubbleBreaker by default). Also, if you look in task manager, is MobileMute listed?
-Jay

Gyrator and rotation during call

I was wondering if any one knows if Gyrator can be set to "not" rotate during a call? As it is now when I am talking ,and maybe need to click over to call waiting my screen goes to landscape...and then lags to go vertical so I can hit the right key.
The same when I want to hang up, when I pull away from my ear the screen is in landscape.
I would appreciate any help please........Thank you!:
Again, I am trying to stop rotation during a call. Also I am using a Sprint Touch Pro
Don't think it's possible with Gyrator? Use ChangeScreen + InCall Screen Tweak
Kraize, I appreciate that info, but could you walk me through that process you described? Is that an entry I would add as an event in Gyrator? Thanks again.....Marc
Eagleland,
This was driving me crazy as well but I figured out how to disable rotate in a call.
Create a new event in gyrator and set the application to phone. Then set orientation to portrait, and action to rotate screen. Finally, make sure that it is promoted above Rotate in the priority list.
I did this earlier today and so far it has been working for me.
*Also* - Make sure that Orientation is checked under that menu where edit event is located.
Correct me if I'm wrong but this can be done for any program you don't want to rotate.
Nox....thank tou so much for the info. I have not been able to test it yet, but I will let you know.
I am having no fun trying to figure Gyrator out! It would be nice if they had a manual or a better tutorial, don't you think?
Thanks again! Have a nice holiday!
yeah, i hit that problem too, but in gyrator options, there are some entries to disable it for some apps, like opera or touchflo. based on those, i did one for iconsoft phonex, because that's what i'm using. and it's working perfect, though i wouldn't have it any other way.
also, it's the exact same thing nox is talking about.
Hi Gordon and NOX! Wheel I want to say thanks again for the info. But I seem to still have the problem of the screen rotating while I am in the middle of a call? Nox, I followed your direction and maybe I did something not quite right.
First of all ,when I press the talk button and the phone keypad comes up, it will rotate. Then I placed a call, and as I pulled the phone away from my ear, it was again in landscape. Orientation is supposed to be checked all of the time correct? Is there something I may have missed?
Thanks again, Eagleland
Here's how I did it: http://forum.xda-developers.com/showpost.php?p=3406887&postcount=1170
Hi tnyynt....thanks for your help also. Weel, i tried it the way you described and that didnt' work also. Is maybe because I have to do a soft reset? Also should orientation be cheched in the event menu? I appreciate your insight.
Have a good evening...Eagleland
use the app "changescreen"...IMO it is much easier to use than gyrator..
go to the "exceptions" tab and add "cprog", select portrait and your done.
I also use smartlock to lock the phone during a call, along with the InCallScreenTweek and now there is no more opening applications during a call..
the screen rotation and opening of applications during a call drove me insane for awhile...
I am still having problems getting my phone to stop rotating during a call, and frustration is setting in. I am wondering if it is because I am using a Sprint HTC Pro. Does anyone know if the Changescreen App would work better than
Gyrator on a Pro. I installed the touch screen tweak and it wot
ks well but does not stop the screen rotation.
I am missing something , and can't seem to pin it down.
I would appreciate any insight once again.....I am offering to pay someone that can give me the answer....seriously!!
Thanks again, Eagleland
nox357 said:
Eagleland,
This was driving me crazy as well but I figured out how to disable rotate in a call.
Create a new event in gyrator and set the application to phone. Then set orientation to portrait, and action to rotate screen. Finally, make sure that it is promoted above Rotate in the priority list.
I did this earlier today and so far it has been working for me.
*Also* - Make sure that Orientation is checked under that menu where edit event is located.
Correct me if I'm wrong but this can be done for any program you don't want to rotate.
Click to expand...
Click to collapse
hi thanks all is working and it help me a lot - info 4 others read carefully and it is gonna work
thanks
Eagle,
I did what nox said and was still having issues like you. Then I went back into the event I created in gyrator to look through the settings and noticed my problem. When choosing the application ("phone") the first time, I only single clicked it and moved on. When I came back to edit, I noticed no app was selected, so this time I DOUBLE-CLICKED "phone" as the application and now it works perfect!!
Hope this helps. It's exactly what I (and presumably you) was looking for.

Screen get locked even if call is in progress

Hello,
I am new to the Diamond 2. When the call is in progress the screen gets lock. I have got no option to tap the "END CALL" ono screen. I need to unlock the phonoe by pressing the power button and select/view the call progress .
And if the simple lock is enabled i need to enter lock to view the call status .
This is annoying. So How can I change setting to that if call is in progress the screen should NOT get lock.
PS: I have set the simple lock for my mobile. It gets lock even if the simple lock is not set.
Edit#1:
The screen also get locked when we are playing a movie too this is annoying. I think no one in this fourum has this issue or no one tried to resolve this.
Thanks.
Hi hi...I do face the same problem with you. I am looking for any kind soul out there for help on us to resolve such issue. Millions of thank!
No luck yet. Any senior member/developer who can help us or let me know if that is not possible
Close but not similar is my problem.
The TD2 is about 4 weeks old.
The screens turns black after about 10 seconds whatever settings I apply in the energy savings. WinMo keeps the settings, but does not apply them.
In contrast to the above posts I can end all calls by pressing the "end call button".
Any ideas?
True, we can end the call by pressing "End Call" button.
But can you view the call progress window? can you know how much time you spoke? Can you start another call / conf etc etc. This is tedious, which this phone is missing.
Today I send a query to India HTC tech Support. Lets see what they reply. or they will fix in WM 6.5 when it is released for TD2.
The screen also get locked when we are playing a movie too this is annoying. I think no one in this fourum has this issue or no one tried to resolve this.
if you don't want your phone to lock automatically, go to: all settings - system - power - advanced. There you care disable automatically turning off backlight and device. Hope this helps. It doesn't provide a solution for in-call, but for movies ... it's not very hard to go to this tab and disable it before viewing
Thanks for your reply georgeono. I am also waiting for reply from HTC Tech support. Let see what solution they are giving.

Categories

Resources