windows-mobile

Write once deploy on Windows Mobile 6, Windows Phone 7, Android and iPhone? [closed]

瘦欲@ 提交于 2019-11-27 13:22:00
Was just wondering if there were any cross platform development platforms which would run great for corporate type apps on various mobile devices. Would be ideal if the language was C# but feel free to suggest others. have you checked out Titanium at http://www.appcelerator.com And then there is the PhoneGap at http://www.phonegap.com/ If you're happy to re-use business logic and write device specific user interfaces (more work, but better user experience on each device) you could consider the various Mono frameworks. Writing the core business logic as a class library, then writing specific

What are the most valuable .Net Compact Framework Tips, Tricks, and Gotcha-Avoiders? [closed]

落爺英雄遲暮 提交于 2019-11-27 09:56:34
We work extensively in the .Net Compact Framework and Windows Mobile. I've seen plenty of questions come up regarding specifics to development of ASP.Net apps or other .Net based desktop apps but nothing CF specific. Anyone else a mobile developer out there that can share some things to start doing, stop doing, and avoid doing when developing in the Compact Framework? Sure: Use a physical device whenever possible (not the emulator) Test with multiple devices (different vendors, different models) Concentrate testing around sleep/wakeup behaviors When using MSTEST unit tests, never use private

custom dialog with a text field in winmobile

[亡魂溺海] 提交于 2019-11-27 08:09:12
问题 I'm looking to have a simple custom dialog box, like a message box, that has a label and a TextBox. If there's a simple way to do this, sorry! I'm really not well versed in the dialog stuff. Thanks for any help, guys! 回答1: Here is how to make a small custom dialog box in Windows Mobile that looks like this: alt text http://www.freeimagehosting.net/uploads/b8fb5421d6.jpg Add a form to your project, and set its FormBorderStyle property to None. This allows the form to be resized and positioned,

Accessing storage of simulator/device while debugging

落花浮王杯 提交于 2019-11-27 06:26:26
问题 I created an UWP project, where I store a file in the cache directory: string writeFilePath = Path.Combine(ApplicationData.Current.LocalCacheFolder.Path, "test.jpg"); await Task.Run(() => File.WriteAllBytes(writeFilePath, image)); Now I want to view the saved image, but I have no access to it. How do I access it from the simulator or directly on the device (Windows 10 Mobile phone)? Perhaps one could copy the file from the device to the local PC? I tried the IsolatedStorageExplorer, but I

What mobile platform should I start learning? [closed]

时间秒杀一切 提交于 2019-11-27 06:23:36
What mobile platform should I start learning? What matters is: ease popularity of the platform low cost of the SDK and actual handheld MicTech I think 3-4 platforms have a future. But it depends on what platform do you like and how you like freedom in distributing your applications :) Windows Phone 7 .NET and Silverlight through Windows Phone Marketplace Android Java through Android Market (fees) or like normal applications iPhone Objective-C or Java ( Developing iPhone Applications using Java ) through iPhone Market pay some fees ($99/year) The Incredible App Store Hype You need Mac (Mac OS)

How to estimate the thread context switching overhead?

陌路散爱 提交于 2019-11-27 06:11:15
I am trying to improve the performance of the threaded application with real-time deadlines. It is running on Windows Mobile and written in C / C++. I have a suspicion that high frequency of thread switching might be causing tangible overhead, but can neither prove it or disprove it. As everybody knows, lack of proof is not a proof of opposite :). Thus my question is twofold: If exists at all, where can I find any actual measurements of the cost of switching thread context? Without spending time writing a test application, what are the ways to estimate the thread switching overhead in the

How do I get modified date from file in C# on Windows Mobile?

﹥>﹥吖頭↗ 提交于 2019-11-27 04:20:17
I make a file in PC, and I want to transfer it to a PPC ( Windows Mobile ). How can I get the modified date of this file? (I need it on Windows Mobile.) Steve Guidi FileInfo.LastWriteTime and FileInfo.LastWriteTimeUtc should register this information. string strFilePath = @"C:\myfile.txt"; DateTime lastModified = System.IO.File.GetLastWriteTime(strFilePath); Reference: File.GetLastWriteTime on MSDN . raghu sathvara Try This. FileInfo fileInfo = new FileInfo("path"); var created = fileInfo.CreationTime; //File Creation var lastmodified = fileInfo.LastWriteTime;//File Modification 来源: https:/

Iframe support on mobile

点点圈 提交于 2019-11-27 03:28:12
问题 Is there are any ambiguity while using iFrame on the mobile devices? Does all mobile devices support iFrame. 回答1: Ideally all mobile devices should support iFrame however situation can leads you to some known issues which are mentioned in below links. You can put <iframe src="page-1.htm" name="test" height="120" width="600">You need a Frames Capable browser to view this content.</iframe> code in your page and test on various platform. Following are known issues. iframe is not working android

How to get the path of app(without app.exe)?

僤鯓⒐⒋嵵緔 提交于 2019-11-27 02:22:10
问题 I want to get the path of my app like: "\\ProgramFiles\\myApp", I try to use the following code: string path = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase; But it returns a path which has "\\myapp.exe" at the end. I also tried: string path = System.IO.Directory.GetCurrentDirectory(); But it throws an “NotSupportedException”. Is there any way to get a path without .exe at the end? 回答1: path = System.IO.Path.GetDirectoryName( path ); 回答2: Application.StartupPath should

WindowsMobile: Application Exits after handling Exception from DialogForm

霸气de小男生 提交于 2019-11-26 21:58:12
问题 I have the following simple scenario: A DialogForm with a Button, the Button_click throws an exception. A MainForm with a button and a Label, in the click I show a new instance of the DialogForm inside a Catch block. If I run this setup in regular WinForms, I can catch the Exception as expected. If I run this in WinMobile (I've tested on WM5 and WM6 Pro) I can see with a Debugger that the Catch block is entered but the Exception keeps propagating up and the App dies. The code in MainForm