专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > BlackBerry

widget application 中取得gps location总是0,0, google gear什么也显示不出来,该怎么解决

发布时间:2010-05-30 19:40:39 文章来源:www.iduyao.cn 采编人员:星星草
widget application 中取得gps location总是0,0, google gear什么也显示不出来
1。 在storm 2(9550) simulator中返回的经纬度总是0,  
html如下:
  1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  2: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  3: <head>
  4: <title>GPS Testing</title>
  5: <script "text/javascript">
  6:  
  7: // called when location object changes
  8: function locationCB()
  9: {
  10: alert("Latitude " +
  11: blackberry.location.latitude);
  12: alert("Longitude " +
  13: blackberry.location.longitude);
  14: return true;
  15: }
  16:  
  17: // test to see if the blackberry location API is supported
  18: if( window.blackberry && blackberry.location.GPSSupported) {
  19: document.write("GPS Supported");
  20:  
  21:  
  22: // Set our call back function
  23:  
  24: //WRONG: this would call our call back function immediatly, not after the refresh
  25: //blackberry.location.onLocationUpdate(locationCB());
  26:  
  27: //WRONG: the blackberry browser won't support passing a method.
  28: //It will error on refresh and all javascript processing on the page will stop
  29: //blackberry.location.onLocationUpdate(locationCB());
  30:  
  31:  
  32: // RIGHT: pass a string that calls our method
  33: blackberry.location.onLocationUpdate("locationCB()");
  34:  
  35: // set to Autonomous mode
  36: blackberry.location.setAidMode(2);
  37:  
  38: //refresh the location
  39: blackberry.location.refreshLocation();
  40: }  
  41: else
  42: {
  43: document.write("This Device doesn't support the Blackberry Location API");
  44: }
  45: </script>
  46:  
  47: </head>
  48: <body>
  49: </body>
  50: </html>

2. google gear api的 geo 方法,什么都显示不出来。

请问有人知道怎样在bb widget application中怎样取得手机的gps location 么??

 

------解决方案--------------------
你的storm 2是行货中国电信的吗?
我印象里面,中国电信还没有出9550呢

你是用的水货verizon吧?
如果是那样,估计你中彩了,可能是verizon手机的问题
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: