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手机的问题