Win Phone 7.1和Win Phone 8的行为不同,使用相同的GPS代码 [英] Win Phone 7.1 and Win Phone 8 behaving differently with the same code for GPS

查看:65
本文介绍了Win Phone 7.1和Win Phone 8的行为不同,使用相同的GPS代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为Simple Walk的应用程序已在手机中使用7.1版本的手机应用程序已经上市了一段时间.与我所有使用Bing地图的应用一样,我最近更新了 只需更改一下即可:我用基本密钥替换了Trial Bing Map密钥.

I have an app named Simple Walk that has been in the phone market for some time as a version 7.1 phone app.  As with all my apps that use a Bing map, I recently updated it with only one change:  I replaced the Trial Bing Map Key with a Basic Key.

我刚刚发现新版本可以在Windows Phone上正常运行7.1,但未在Windows Phone 8上安装(更新之前已安装).

I have just discovered that the new version works as it should on a Windows Phone 7.1 but not on a Windows Phone 8 (it did before the update). 

进行密钥更新时,我只是在计算机上进行了测试,在Win Phone 7.1上,并注意到地图显示并向我显示了我的当前位置.

嗯,当我现在带着Win Phone 8与新手机散步时从市场下载的应用程序版本,计时器每16秒触发一次,并且据推测会处于新位置 阅读并在地图上标绘.问题在于新位置始终与前七个位置的第一个位置相同.所以看来我的Win Phone 8与Win Phone 7.1的功能不一样-不能正常工作 与以前版本的应用程序相同.

Well, when I now take my Win Phone 8 for a walk with the new version of the app downloaded from the Marketplace, the timer fires every 16 seconds and supposedly takes a new position reading and plots that on the map.  The problem is that the new position is always the same as the first position for the first seven times.  So it appears that my Win phone 8 is not functioning the same as the Win Phone 7.1 -- an not functioning the same as it did under the previous version of the app.

除Bing Map键外,未进行任何代码更改(除非Microsoft进行了修改,在提交过程中),以及从市场上下载的程序 仍然可以在我的Win 7.1手机上正常工作.

No code changes were made other than the Bing Map key (unless Microsoft makes modifications during the submission process), and the program as downloaded from the marketplace still works correctly on my Win 7.1 phone.

有什么想法吗?

推荐答案

每当我在手机上启动GPS时,我都会收到2个位置更改事件,它们触发了最后一个位置和当前位置.每当位置更改事件触发时,您都无法启动gps并更新地图,而不是在计时器上进行操作.

Whenever I start the gps on my phone I get 2 positionchanged events fired the last position and the current position.  Couldn't you just start the gps and update the map whenever the positionchanged event fires instead of doing it on a timer.


这篇关于Win Phone 7.1和Win Phone 8的行为不同,使用相同的GPS代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆