windows-mobile-6

Keep Windows Mobile 6 phone alive

丶灬走出姿态 提交于 2019-12-06 07:53:31
问题 I am making an application for Windows Mobile 6.1 Pocket PC (Touchscreen). I know when a Pocket PC's screen turns off, it goes into a standby mode and applications are pretty much halted in the background. My application can't do that. It needs to keep going. So my question is, how can I keep the phone alive (backlight turned on) until my application is done? An example of this would be video streaming applications such as Youtube. It keeps the phone on while the video is playing. 回答1: As

bluetooth file send

吃可爱长大的小学妹 提交于 2019-12-05 22:00:35
i'm new to bluetooth development and i found the 32netfeet . Right now i'm able to search for bluetooth devices nearby and connect to them but how do i send a file e.g SendTest.txt? I tried buttonclick event using the OBEX but i don't understand this is my example code: using InTheHand.Net; using InTheHand.Net.Sockets; using InTheHand.Net.Bluetooth; namespace BluetoothIntheHand { public partial class Form2 : Form { private Guid service = BluetoothService.DialupNetworking; private BluetoothClient bluetoothClient; public Form2() { InitializeComponent(); } private void btnSearch_Click(object

Detecting USB Connection — C# .Net CF 3.5

若如初见. 提交于 2019-12-05 15:09:47
问题 I have an application (.Net Compact Framework 3.5) running on a Windows Mobile 6.1 device and I want to detect when the USB connection changes (either something connects or disconnects). I was originally using the SystemProperty.CradlePresent property to trigger an event but I am wondering if this only works if the device connecting has ActiveSync? I will be receiving a connection via USB from a Linux device that does not have ActiveSync running on it. Can I still use SystemProperty

Keep Windows Mobile 6 phone alive

ぃ、小莉子 提交于 2019-12-04 12:34:35
I am making an application for Windows Mobile 6.1 Pocket PC (Touchscreen). I know when a Pocket PC's screen turns off, it goes into a standby mode and applications are pretty much halted in the background. My application can't do that. It needs to keep going. So my question is, how can I keep the phone alive (backlight turned on) until my application is done? An example of this would be video streaming applications such as Youtube. It keeps the phone on while the video is playing. As long as your app is doing something (in a loop or a Timer) it is relatively easy, you need: public static class

Detecting USB Connection — C# .Net CF 3.5

China☆狼群 提交于 2019-12-04 02:22:10
I have an application (.Net Compact Framework 3.5) running on a Windows Mobile 6.1 device and I want to detect when the USB connection changes (either something connects or disconnects). I was originally using the SystemProperty.CradlePresent property to trigger an event but I am wondering if this only works if the device connecting has ActiveSync? I will be receiving a connection via USB from a Linux device that does not have ActiveSync running on it. Can I still use SystemProperty.CradlePresent to detect the connect/disconnect from the USB? Or do I need to explore other options to detect the

How can I determine which Registry setting gets updated when the user selects “Files - Sync Settings” in ActiveSync?

为君一笑 提交于 2019-12-02 14:40:15
问题 I'm no longer sure that "GuestOnly" is really the registry key I need to change to prevent file syncing between a handheld device and the PC to which it is connected. If I open ActiveStync's "Windows Mobile Device Center", select "Mobile Device Settings" then "Change content sync settings" and check or uncheck "Files - Sync Settings", it does not alter the value of the "GuestOnly" registry key in "SOFTWARE\Microsoft\Windows CE Services" The "GuestOnly" value remains 0x00000000 (0) no matter

Reboot Windows Mobile 6.x device programmatically using C#

旧街凉风 提交于 2019-11-30 20:58:40
My HTC HD2 can't be rebooted from OS, just shut down. So I want to write a small program to do that. Is it possible to programmatically reboot Windows Mobile 6.x device using C#? Trevor Balcom You should use the documented ExitWindowsEx API. IOCTL should only be used on platforms lacking the ExitWindowsEx function call (Pocket PC 2000, 2002, and 2003). See the MSDN doc for more information. [DllImport("aygshell.dll", SetLastError=""true"")] [return: MarshalAs(UnmanagedType.Bool)] static extern bool ExitWindowsEx([MarshalAs(UnmanagedType.U4)]uint dwFlags, [MarshalAs(UnmanagedType.U4)]uint

JSON .Net Windows Mobile Error when serializing

丶灬走出姿态 提交于 2019-11-28 07:47:30
问题 I am running this bit of code: string serialized = JsonConvert.SerializeObject(somethingToSend); And it throws this exception: MissingMethodException: Could not load type 'System.Runtime.Serialization.StreamingContext' from assembly 'mscorlib, Version=3.5.0.0, Culture=neutral, PublicKeyToken=969DB8053D3322AC'. Here is my configuration: Visual Studio 2008 (with all the latest service packs etc) Smart Device project targeting Windows Mobile 6 .Net 3.5 Json DotNet version 4.5 Release 7

How do I continue running after an unhandled exception?

拟墨画扇 提交于 2019-11-27 15:53:06
I have the following code in my application that is running after an unhandled exception: AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { var exception = e.ExceptionObject as Exception; if (exception != null) MessageBox.Show(exception.Message + " - " + exception.StackTrace); } but even if i catch unhandled exception my windows mobile application close. How to prevent closing application when i catch unhandled exception. I never want to