windows-mobile

Keep Windows Mobile App running in standby mode

不羁的心 提交于 2019-12-06 09:35:37
问题 I have a simple Windows Mobile application which records GPS coordinates every 5 minutes. The problem is the app works fine as long as the screen is on, as soon as the phone goes in standby mode the app stops working. When I switch on the device the app again starts working again. What do I do to keep the app working even in standby mode? Sandeep 回答1: My experience with GPS is that it takes a while to get a fix (at least on my device), so I think you have to keep the phone from suspended

Consume Web Service HTTPS (with certificate for authentication)

拥有回忆 提交于 2019-12-06 09:29:39
I am trying to consume a Web Service HTTPS (using a certificate authentication). I have added my Web Service in my Web Reference on my project and "myCertificate.cer" has imported to Console Root\Certificates\Personal. I have an error 401: The request failed with HTTP status 401: Unauthorized. Any idea? .... using System.Security.Cryptography.X509Certificates; ... string certPath = @"C:\myCertificate.cer"; // Load the certificate into an X509Certificate object. X509Certificate cert = X509Certificate.CreateFromCertFile(certPath); // Create an instance of the Web service proxy. zgetuser

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

Windows Phone 7/WPF - Sharing a codebase

被刻印的时光 ゝ 提交于 2019-12-06 07:12:13
问题 I've developed Windows Mobile apps in the past and have always found that when trying to share a codebase with Windows (Winforms/WPF) apps, generally things get very difficult. Has this changed with Windows Phone 7? It would be great to add a WP7 app to a solution containing a WPF app and ASP.NET site and have everything share the same code base. 回答1: Have a look at the Portable Library Tools CTP here It's a Visual Studio add-in that enables you to create libraries that run on a variety of

Can anyone tell me were I am making mistake in the snippet

梦想的初衷 提交于 2019-12-06 07:10:43
public partial class Form1 : Form { [DllImport("coredll.dll")] static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); const int GWL_WNDPROC = -4; public delegate int WindProc(IntPtr hWnd, uint msg, long Wparam, long lparam); public Form1() { InitializeComponent(); WindProc SampleProc = new WindProc (SubclassWndProc); SetWindowLong(this .Handle , GWL_WNDPROC, SampleProc.Method .MethodHandle.Value.ToInt32()); } public int SubclassWndProc(IntPtr hwnd, uint msg, long Wparam, long lparam) { return 1; } Here is the sample which i was trying to take the window procedure of a form,

System.Threading.Thread replacement in UWP / Windows 10 mobile

♀尐吖头ヾ 提交于 2019-12-06 06:50:09
问题 In UWP, how can I access the thread object? I want to change the name of the main thread and additional thread that I will manage. I also want to check if the current thread is the main thread afterwards. I'm targeting to windows 10 mobile. The following code example works for desktop, but not for phone (getting 'System.DllNotFoundException'): [DllImport("kernel32.dll")] static extern IntPtr GetCurrentThread(); Thanks. 回答1: You should use Tasks instead of threads. https://msdn.microsoft.com

Closing GPRS Connections On Windows Mobile

我们两清 提交于 2019-12-06 06:32:55
Is it possible to get all open or cached gprs connections on windows mobile and programmatic force them to close? Ive been looking at connection manager api but cant seem to find methods I to do this. Regards Tony Connection Manager can be notified that you're no longer using the connection by calling ConnMgrReleaseConnection , but that does not forcibly close the connection. It is closed based on the lifetime caching defined in the registry (HKEY_LOCAL_MACHINE\Comm\ConnMgr\Planner\Settings), as well as any info passed in the Release request. (BTW, these APIs are wrapped in the OpenNETCF

Developing for a Windows Mobile Phone, without a contract

烂漫一生 提交于 2019-12-06 06:13:20
Greetings! Anyway, My question, If you want to experiment developing for a Windows Mobile device, how would you go about testing your applications? I know there is a emulator but is not really ideal. Is there anyway, without paying a stupid astronomical cost, to get a development phone? Akin to what Google did with the android and I guess Apple did with the iPod touch. Ideally pay as you go so you could test connection features. Thank you in advance. You can get WinMobile phones sim-free a lot cheaper than Android Dev phones. Have a look at something like the Samsung I200 - WinMobile 6.1 Pro

What is are the tradeoffs of developing under Windows CE 6.0 vs Windows Mobile 6.1

喜夏-厌秋 提交于 2019-12-06 05:05:00
问题 I have a Windows .NET application that I plan to "port" and tailor to a mobile device. The application consists of a standalone .NET program that works with a barcode scanner, has a simple UI and records the scans to a file. There is also a Windows Service that synchronizes data to a server using web services (proprietary sync protocol). Memory/disk/network requirements are rather minimal. We have no existing WinCE or WinMo code bases and do not require other applications on the device. The

Automated GUI Testing .NET CF (Windows Mobile 5)

北战南征 提交于 2019-12-06 04:54:31
问题 My company is looking into using automated GUI testing for our current app before proceeding to alpha. Our current main focus is robustness testing, one way we want to achieve this is automated UI testing that can be repeated over several hours/days. For our desktop version we've decided on AutomationElement, and I've seen several free open source frameworks. For .NET CF the options seem more limited. I found M-eux Test, but the license fee is a little bit steep. I also found Test Complete 7,