Phone Application (cprog.exe) - Problem - Windows Mobile Development and Hacking General

I'd like to start the internal phone application (cprog.exe) from my application and I've tried to do so by either CreateProcess() or by emulating a hardware key pressed. On Windows Mobile 5.0 this works perfectly, but on Windows Mobile 6.0 it does not (it also does not work when I press the hardware phone button). I rather need to call the WM6 device once to get the phone application in the foreground, and from that onwards it works as intended. When the device is rebooted, the same problem again. any idea?

I also have this same problem with my WM6 device. I have the Iphone theme in wisbar advanced desktop and whenever I hit the phone icon nothing happens. I have tried all of the methods ma_gu has done and still nothing seems to stay effective.

did u try to run it manually in ur phone...caz i ve tried to run it manually..and bind it to hardware button..it works

what do you mean by "run it manually"? Calling "cprog.exe"? Pressing the hardware phone button? - Those two methods unfortunately did not succeed...

Same here...
On wm5 the green calling button was working but on wm6 it's not working.
Please provide a solution to this.

Related

device couldn't wake up after turning to sleep mode

I just got AMEO from T mobile which I believe the same as HTC advantage.
despite of being SIM locked by T-mobile, I am experiencing another problem in waking up the device after it goes into sleep mode.
After I left the device idle for few minutes, it turn the whole screen off. (not only the back lit).
I can see the LED for BT/wifi still blinking.
But no matter which button I press, it couldn't be turn on at all.
As final resolve, I have to soft reset the device every time after it sleep!!!
Can some experts here advise me? is it a defective unit? or some other settings are wrong? Do I need to return it to the vendor?
I don't want to keep the device always on by disabling the auto off feature in power setting either.
Does someone have the same problem like me?
Thanks for any advise in advance.
What happens if you put it on the keyboard while "asleep"? Even if it means taking it off there first.
If doing that and pushing the power button fail to turn it on, it's a defective unit.
it's the same problem even i attach it to the keyboard.
a bit funny though, if i press the power button from the side to turn it off. I won't have any problem to turn it on.
but if i leave it to auto off mode, then i can't turn it on until resetting it from the back hole.
can it be improved if I flash to other ROM?
My Ameo does it occasionally - I find that (re)attaching the keyboard tends to bring it out of sleep better than pressing the power button. I get the impression that by pressing the power button, it sometimes gets confused that its still on and tries to turn itself off (even when it is already off). Tends to lead to a reboot every few days though. Waiting (fingers x'd) for WM6 to see if it behaves better.
do you guys have this option
settings>button>lock
try to toggle the checkbox to see if it helps
I'll try it! I found it under Settings/System Tab, 'Key Lock' icon.
I'll report back within the week.
I can confirm that it doesn't help my AMEO.
anyway, thank for your thought.
Digital.Diablo said:
I'll try it! I found it under Settings/System Tab, 'Key Lock' icon.
I'll report back within the week.
Click to expand...
Click to collapse
To digital:
can I ask for a favor from you. could you try to make the device auto power off without sim card in.
and see whether u will have the exact problem i have or more frequent it dead...
due to my unit is locked to T mobile network, i still haven't put any sim card in.
Tried it without simcard in but it still turns on ok after the fix. TBH, sounds like you're getting the issue more than me - mine only does it occasionally (once every couple-3days) and as yet, I've not managed to locate a consistent cause. I'll keep my eye on it though with the fix and let you all know how I get on.
the other thing that i can think of out of at the moment is that you are running some prog from the sd card/microdrive in the background so when you try to switch your device on then it does not get started and hence the problem...
try tweaks2k (you can use the trial version)
it has a bunch of settings for this... (just check that it is compatible with ameo first)
install 'screenoff' and assign to one of the button.
it works fine.
have to make work around like this now. no idea why this problem only happen to my AMEO...
anyway, thanks for all of u!
royalmail said:
Does someone have the same problem like me?
Click to expand...
Click to collapse
I have a similar problem. My device does not wake up in one case from 10 approximately.
Frequency of occurrence of a problem decreases if to close the phone's program compulsorily.
In other branch to me have told, that the problem can be because of the Active Sink's program. Have allowed advice to disconnect automatic start of this program. But I cannot check up because my program all the same is started if to switch off an option of the automatic device. :-(
hard reset can solve the problem completely. ;-)
I'm pleased to say that the 'button' tweak posted here has worked... So far!
Thanks Gents (and lasses if there are any).
That happened to me too yesterday.
I hard reset it and reinstalled everything to microdrive now. (trying to eliminate the possiblity of compaction thread) Removed SPB Pocket plus, which I've come to be quite suspecious by now. Also removed true VGA. So far I have not got a single freeze yet, touch wood. If it runs okay for a few more weeks with no freezing, will put back true VGA and see how it goes again. Will try to isolate the offending software bit by bit.
Hi,
I've had the same problem with my Advantage
After some weeks of test i have found how to solve the problem on my Advantage. perhaps it's only works on mine but you can try.
i have installed "all" progs on memory and not on microdrive. on microdrive i have only a few exe like wififofum or progs not intend to run when i turn my Athena off.
then no more problem waking up my athena.
I think the problem could be that microdrive cause a time out or thing like this when we wake up the PDA then athena freeze waiting about datas from microdrive.
then for me now it's programs like browsers, sscontact, traylaunchers etc .. => memory
programs like painting tool, etc ... => microdrive and close (kill process) them before sleep mode.
and all is ok now for me. The only freeze in 1 week was Pocket IE freezing (but the reason is pocket IE sucks)
There was actually another point that I forgot to mention concerning the freezing. I found out that the free miniSD card came with the bonus pack was actually faulty. With the pocket mechanic professional benchmark, I managed to see only less than 200kb/s read and write! I did a hard reset, and installed everything on microdrive, and touch wood, I have not got a single reset or freezing yet these two days. I install nothing into memory, as we all know that it takes up to 2 seconds to write a block of data into NOR ROM, which is why we should always shift our directory of IE cookies/history/cache away from the main memory. Since the main memory (NOR ROM) is good for executing program in place but terrible in writing, Microsoft's MikeCal thinks we should not keep any data there. (See this thread: http://blogs.msdn.com/windowsmobile/archive/2006/03/16/552996.aspx ). I try to keep the memory as free as possible to minimise compaction thread kikcing in. Will see how it goes in the next couple of weeks and take on from there.
I'm happy to confirm that, after a weeks testing, the button 'fix' seems to have resolved the issue! Thanks all.
I have been experiencing similar problems.
After being left on standby for a period of time (>10mins), the unit sometimes goes into "autistic" mode.
i.e:
Power button does not function. Unit GSM light flashes, but will not resume from sleep.
I've tried the following:
Attaching USB cable. No change.
Attaching keyboard. No change.
Calling phone. No change.
Soft reset. Starts ok.​
I have now tried:
Settings/System/Key Lock
- set to 'Do not lock buttons'​
However, I suspect ActiveSync.
The unit was attempting to Sync every 5 minutes, while connected with a USB cable. I therefore followed advise (read elsewhere) to create a dummy server to allow an ActiveSync schedule to be created, then deleted.
http://www.modaco.com/index.php?showtopic=246522
This is coincident with the start of the problem.
Regards
Devany said:
I have been experiencing similar problems.
After being left on standby for a period of time (>10mins), the unit sometimes goes into "autistic" mode.
i.e:
Power button does not function. Unit GSM light flashes, but will not resume from sleep.
I've tried the following:
I have now tried:
Settings/System/Key Lock
- set to 'Do not lock buttons'​
Click to expand...
Click to collapse
I had same problem once I enabled Key Lock function.
However, once I disable key lock, it works fine again.

Recover WM6 last foreground application after power on

Hi,
Before upgrading my WM5 device to WM6, each time I powered it on I got the same application window I had before it got powered off.
Example: If I was using pocket IE and then turned the device off, as soon as I hit the power-on button, Pocket IE was the active application and I could continue browsing from the point I was before.
Since I upgraded to WM6, each time I turn the device on, I get the Today window. The applications that were running when the device was turned off are still running, but in a minimized state, so I have to use a task manager to bring the desired application to the front.
Is there anything I can do to have the old behavior I had in WM5?
Thanks,
Fran
I think you have some 3rd party app that does that, Battery status can do that, and you can disable it in settings. I'm sure others offer this feature (some like it, some don't). Check your applications.
franjorge said:
Hi,
Before upgrading my WM5 device to WM6, each time I powered it on I got the same application window I had before it got powered off.
Example: If I was using pocket IE and then turned the device off, as soon as I hit the power-on button, Pocket IE was the active application and I could continue browsing from the point I was before.
Since I upgraded to WM6, each time I turn the device on, I get the Today window. The applications that were running when the device was turned off are still running, but in a minimized state, so I have to use a task manager to bring the desired application to the front.
Is there anything I can do to have the old behavior I had in WM5?
Thanks,
Fran
Click to expand...
Click to collapse
Yes, the problem lies in the password lock. Even if the phone has not locked and left you at the password entry screen just having it enabled will cause this to happen. Disable the password lock and it will operate the way it should. It's a WM6 issue.
You are right. Disabling the password lock makes it work as it did in WM5.
I am quite new to WM, so perhaps I am going to ask a stupid question, but here it goes anyway: Can this be solved by Microsoft? Is there any way to ask them to do it? Since I installed WM6 I have a "Windows Update" feature, but it never finds any updates. Maybe this could be the first one???
Thanks,
Fran
greg3d said:
Yes, the problem lies in the password lock. Even if the phone has not locked and left you at the password entry screen just having it enabled will cause this to happen. Disable the password lock and it will operate the way it should. It's a WM6 issue.
Click to expand...
Click to collapse
franjorge said:
You are right. Disabling the password lock makes it work as it did in WM5.
Can this be solved by Microsoft? Is there any way to ask them to do it?
Thanks,
Fran
Click to expand...
Click to collapse
Of ocurse it can, the question is; will it, and if it will, when.

G-Alarm disables TouchFlo?

Every time I install G-Alarm on my phone, TouchFlo seems to get disabled.
It is still enabled in the settings menu, but the home screen is just a HTC wallpaper, and when I press the windows key the start menu is opened.
I have tried rebooting multiple times, but nothing seems to help...
Only removing the application has worked so far for me
Any ideas?
EDIT: I'm having the same problem with G-Profile!
It seems that the programs just disables the TF service from launching/running...
Haven't experienced that problem myself, using G-Alarm v1.5.1 here.
Hmm.. Strange.
I have heard more people say the are using some of the "G-programs" on the Touch Pro 2. So it must be something in the ROM I guess.
I am using an unbranded Dutch version. But I have no clue on how to fix this...
Ok. I have figured out that if I remove the PIN entry screen from the start up sequence (so no PIN has to be entered anymore) G-Profiles works. I haven't tried the others yet, but I'm sure they'll work as well.
The thing is... I would like my phone to have a bit of protection by the PIN code
I don't use G-alarm on my Dutch TP2. But I have this issue with not starting TouchFlo3D also. On HTC advise I resetted the device. Then it worked for abou 4 hours and after that it wouldn't start anymore. The screen staus black with the fancy HTC in the sceen... but no "starting touchflo".
Als for that reason I instaled SPB mobile shell latest... but this will not update new SMS or Mails in the main screen... more people on SPBCLUB have this issue... I think it has something to do with the TP2 and not with SPB... more people with same problems?
Ahh...so that's what causing it.. I have a G-Alarm too but didn't realize it's affecting the interface not loading up
Several soft reset and it'll load up. Kinda annoying until the developer fixes it (and we have to pay for the new version )
I don't think this problem is just with G-applications, I am having the same problem withouth any g-apps installed. After a few reboots it usually works again, but I think this is a more genereal TP2 issue.
michaelra said:
Ahh...so that's what causing it.. I have a G-Alarm too but didn't realize it's affecting the interface not loading up
Several soft reset and it'll load up. Kinda annoying until the developer fixes it (and we have to pay for the new version )
Click to expand...
Click to collapse
I've asked on his forum, and he said it probably was a TouchFLO bug...
Thread here: http://forum.ageye.de/viewtopic.php?f=22&t=721&start=0
(I'm BiT on there...)
I've had the exact same issue but found out that with me it wasn't linked to G-Alarm but to the 'Background4AllTabs' plugin,
I've hard reset tons of times, tried several alternate installs, but once I start changing TF3D options like th background or clocks, it slows down tremendously in screen rotation and it often won't start after reboot...
hmm i dont know if you still have these problems but a few days ago i figured out a solution^^
The problem is the entry. I've got an htc touch pro 2.
Soo to get TF3D starting try fallowing thing:
-Go to "Settings-->Connections" and turn ON the flightmode (this will disconnect all)
-Then restart your phone... wait a few seconds and TADAAA TF3D SHOULD start.
-Go to "Settings-->Connections" turn OFF the flightmode
-Enter your PIN
-Now your phone should connect to your provider.
So if this work you have to do this every time you restart your phone... so turn on flightmode --> restart--> turn off flightmode
I hope this way is not only working on my phone
btw sorry about my english xD
GreeZ $me
Flightmode works for me
Indeed it works now. But I have another interesting thing.
I was used of waiting nicely looking at the PIN input screen. Wait, lets say,. 20 seconds; cancel the pin input and see the Touchflow coming up in 100% of the cases. So I could live with the problem.
Now I installed Navigon who puts a file in the autorun folder. And now Touchflow never starts up any more with the exception of the Flightmode trick.
Is navigon guilty?
i never used G-Alarm but i have the same problem.
so i've tried checking on/off Today/Item/TF3D, tried Flight Mode, and it still won't work. i'm talking like only 30-50% of the time it does work. and I never had PIN1 enabled!
i'm no programmer but it is conflicting with apps we install because TF3D works perfectly when the phone was fresh or hard-resetted. btw i'm using 6.1 Stock T-mobile

Troubleshoot Android Hardware

I have a new to me Hero that I am having sporatic crashes. I have it feeling the phone may have been wet at some point and that the power button may be either stuck on or sending key presses randomly. (possibly other keys too)
I have rooted and upgraded to the latest villian in hopes it was rom related, but the probems followed the phone, so I believe it is hardware related.
To give a better example, when in recovery mode, when I tried to press a button to select a function, (such as wipe), the phone would always come back as user aborted, with every selection. I eventually found a way around this by holding down the button to select a function (and not releasing), then hitting the other key to accept the function.
The shut down menu will also randomly appear and keep coming back until I select something. But pressing the power button does nothing.
So, I am looking for some app or software that will allow me to log hardware keystrokes, or an event viewer to see what is running and when, that may give me a better idea of what is crashing it.
Any ideas guys......
Set up ADB and watch every keypress (and lot more events) using 'adb logcat' command from your PC. See documentation on android Software Development Kit for more info. No linky - sorry, I'm on the bus.
ticho said:
Set up ADB and watch every keypress (and lot more events) using 'adb logcat' command from your PC. See documentation on android Software Development Kit for more info. No linky - sorry, I'm on the bus.
Click to expand...
Click to collapse
Thanks, I will check this out..

[Q] problems when rebooting

dear members of XDA-developers.
i have a question to ask, when i install a new application on my htc HD2, the system tells me that is needs to reboot the phone so i can see the changes.
when i try to reboot, i only get the white screen with the green HTC logo, and it stays there. and the only way to get it to boot back on, is to take away the battery, wait for a few minutes and then try again.
by the way, soft reset did not solve it. can anyone help me please. thank you
What application did you install as this would be helpful to know. It might be s known application that does not play so nice with the HD2.
i installed 4 apps.
and every time it's the same problem
i installed the shortcut for wifi toggle
and bluetooth toggle,
garmin
and soft reboot shortcut
chlikha said:
i installed 4 apps.
and every time it's the same problem
i installed the shortcut for wifi toggle
and bluetooth toggle,
garmin
and soft reboot shortcut
Click to expand...
Click to collapse
Ok do this unindtall all of the apps you listed and reinstall them one at a time and soft reset it after each one until you get the issue back. When the issue has returned whatever app you had just instlled iswhat is giving you the problem. I recomd not using this app and trying to find another app that will do the same function.I also recomend you just place a quick link to the Comm Manager on your Home screen as this will adress hour WiFi toggle wants just have one more touch to acheive this is all. Install Touch Tools and it allows you to intergrate the boot option screen to your end key so all house have to do is hold down the end button and it will give house a screen to power off, soft reset, enter bootloader,hard reset, suspend, and did onnect data. you can also place a quick link to your bluetooth on your Homens screen.

Categories

Resources