windows-mobile

cf.net exception and other logging

扶醉桌前 提交于 2019-12-10 23:25:27
问题 I want to add some logging capability to a cf.net application running on WM6 Pro. I'm looking at logging exceptions and some of the more sensitive sections of code. I would like to have logs stored both locally (i.e. on the device) and also have them reliably uploaded to a server as well (they will need to be queued, my app is occasionally connected). Does anyone know if this possible with log4net or will I have to write my own logging system? Does anyone have any pointers? 回答1: If you use

Windows Mobile GPS

感情迁移 提交于 2019-12-10 23:03:53
问题 I have a requirement such that I will need to fetch the current location (i.e. longitude & latitude) in a windows mobile desktop application. It would be great to have any kind of detailed document for the beginners in windows mobile gps application. Also Do I really need to have an extra gps device connected to my phone? 回答1: If your WM phone is somewhat new ... manufactured in the past year or so ... there's a good chance you have native on-board GPS support. Check your settings. If not,

Windows Mobile C++ Tray Icon

人走茶凉 提交于 2019-12-10 22:33:12
问题 I'm trying to place my application that is mainly running in the background in a 'tray-like' area on the Windows Mobile 6.5. I do it the obvious way by with Shell_NotifyIcon BOOL ShowTrayIcon(HWND hWnd, HINSTANCE hIns, BOOL bShowIcon) { BOOL bRet = FALSE; g_structNotifyIconData.cbSize = sizeof(NOTIFYICONDATA); g_structNotifyIconData.hIcon = LoadIcon(hIns, MAKEINTRESOURCE(IDI_GPSCOMPASS)); g_structNotifyIconData.hWnd = hWnd; g_structNotifyIconData.uCallbackMessage = WM_SYSTRAY_MSG; g

What are the best remoting technologies for mobile applications?

北城余情 提交于 2019-12-10 21:21:52
问题 I have a java back-end that needs to expose services to clients running in the following environments : J2ME Windows Mobile iPhone I am looking for the best tool for each platform. I do not search a technology that works everywhere. I need something "light" adapted to low speed internet access. Right now I am using SOAP. It is verbose and not easy to parse on the mobile. The problem is that I have not seen any real alternative. Is there a format that works "out of the box" with one of these

byte[] to ArrayList?

一世执手 提交于 2019-12-10 17:10:20
问题 Could somebody tell me how can I convert byte[] to ArrayList by using C# under Windows Mobile? Later edit: this would go like having an ArrayList containing instances of a custom type. This list goes to a database (into a blob) as a byte array (the conversion is done by the database API); What I want is to revert the byte[] to ArrayList; .NET CF does not provide the BinaryFormatter; 回答1: All arrays inherit off ICollection, so you can just use ArrayList list = new ArrayList(bytearray);

XAML & Windows Mobile (.Net Compact Framework)

对着背影说爱祢 提交于 2019-12-10 15:12:47
问题 Is there any support for XAML on the Windows Mobile? 回答1: maybe you could check out this project over there at sourceforge. it provides some kind of basic xaml support to create windows mobile UI´s. 回答2: Not from Microsoft, no. Windows CE R3 added a Silverlight (XAML) engine, but it's for native code only, and it's not yet propagated into any WinMo images. 来源: https://stackoverflow.com/questions/1650688/xaml-windows-mobile-net-compact-framework

How to remove click-to-call links for IE mobile browsers

笑着哭i 提交于 2019-12-10 14:34:24
问题 Hi I am able to remove click-to-call links for labels / numbers in Iphone & Blackberry by keeping the above tags in the header part. <meta name="format-detection" content="telephone=no"> //for Safari <meta http-equiv="x-rim-auto-match" content="none"> //for Blackberry Like this do we have any property for Internet Explorer ( Windows Mobile Browser ) ? 回答1: It appears that this functionality is not present in the current release of the OS and IE will parse numbers, addresses and emails

Help required: zip files streaming

我与影子孤独终老i 提交于 2019-12-10 12:22:58
问题 i have problem in sending zip file in network.. all other formats i am able to send except .zip.. i tried a lot i dont no how to do this.. the code i have written at client side to upload file, this is suggested by microsoft here is the link i am able to create zip file, if i try to open it says corrupted..size of the file also varying lot. here is code public void UploadFile(string localFile, string uploadUrl) { HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uploadUrl); req.Method =

How to work with sqlCE in PPC Emulator?

℡╲_俬逩灬. 提交于 2019-12-10 12:07:17
问题 How I can work with sqlCE (sdf Files) in PPC (windows mobile) Emulator ? (The Visual studio 2008 emulator) thank's in advance 回答1: If you go to Start->Programs->Visual Studio 20XX-> Visual Studio Remote Tools, there's a program called Remote Viewer. When you launch that, you can see the "file system" of your virtual device. Just transfer the SDF file to somewhere on the file system, and set your connection string in your app to that location. EDIT: Just to be a bit more clear, I'll run you

Programmatically Get the Incoming/Outgoing COM Bluetooth Port.How can do it in Windows Mobile 6 App in C#?

眉间皱痕 提交于 2019-12-10 11:36:12
问题 I want to Print from windows mobile App through Bluetooth printer.What i am doing is that hard coding the COM port as below... SerialPort comPort1 = new SerialPort("COM5", 57600, Parity.None, 8, StopBits.One); comPort1.Open(); //Some thing to pint //comPort1.WriteLine("PRINT"); System.Threading.Thread.Sleep(500); comPort1.Close(); Its Not Proper Way,I want to search the application available bluetooth printer and connect with it.otherwise show a proper error message ["Bluetooth device not