Programmatically navigate to the Windows Mobile home screen

We have an application that downloads some files in the background. Our application appears when connected to the Internet and after asking the user to take orders, we would like to return to the main screen while we do our things.

We cannot figure out how to do this. We can emulate pressing "back" a few times, which sometimes works, but where you end up depends on what the user was doing when the internet connection happened.

So, can anyone point out pointers on how to do this?

Thank.

Paul.

+1


source to share


2 answers


Can you try setting the screen as the foreground window today?



HWND hWnd = FindWindow (_T ("DesktopExplorerWindow"), _T ("Desktop")); SetForegroundWindow (HWND);

+1


source


Why don't you just hide your app?



Using a Notification wrapper object instead of pop-up the window in full screen might be a better alternative. Details here .

+1


source







All Articles