是否可以在后台获取用户的GPS并发布 [英] Is it possible to get user's GPS in background and post it
本文介绍了是否可以在后台获取用户的GPS并发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友,
我们的客户使用Windows CE 6.5,我知道它具有GPS功能
我卡住了,我有一直在搜索,从网上找不到答案。
有什么解决方案吗?
提前感谢
Dear Friend,
Our customer uses windows CE 6.5 and i know that it has GPS capability
I am stuck, I have been searching since morning and could not find the answer on the net.
Is there any solution ?
Thank in advance
推荐答案
这取决于您使用的框架,库和语言。特别是,您可以使用.NET for Windows CE:
http:// msdn.microsoft.com/en-us/library/ms920900.aspx [ ^ ]。
然后你可以用这种方式使用GPSAPI:
http://blogs.msdn。 com / b / raffael / archive / 2008/03/25 / gps-programming-tips-for-windows-mobile-part-1.aspx [ ^ ]。
要发布数据,您可以使用类System.Net.HttpWebRequest
:
http://msdn.microsoft.com/en-us/library/system。 net.httpwebrequest.aspx [<一个href =http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspxtarget =_ blanktitle =新窗口> ^ ],
http://msdn.microsoft.com/en-us/library/ system.net.webrequest.aspx [ ^ ](这里有一些代码示例)。
参见这个开源项目:http://www.geoframeworks.com/Articles/WritingApps1_1.aspx [ ^ ]。
当然,您可以使用本机非托管编程。这一切都取决于你想要使用什么。另请参阅: http://msdn.microsoft.com/en-us/library/ms850332.aspx [ ^ ]。
-SA
It depends on the framework, libraries and language you are using. In particular, you can use .NET for Windows CE:
http://msdn.microsoft.com/en-us/library/ms920900.aspx[^].
Then you can use GPSAPI this way:
http://blogs.msdn.com/b/raffael/archive/2008/03/25/gps-programming-tips-for-windows-mobile-part-1.aspx[^].
To post data, you can use the classSystem.Net.HttpWebRequest
:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[^] (some code sample is here).
See also this open-source project: http://www.geoframeworks.com/Articles/WritingApps1_1.aspx[^].
Of course, you can use native unmanaged programming. It all depends on what do you want to use. Please see also: http://msdn.microsoft.com/en-us/library/ms850332.aspx[^].
—SA
这篇关于是否可以在后台获取用户的GPS并发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文