黑莓地图不适用于 OS 7
我有一个简单的代码,可以加载特定纬度和经度的 BB 地图。这在运行 OS5 的 BB 9700 上运行得很好,但当我使用其他四台运行 OS 7 的设备时,它就不起作用了。我使用相同的 SIM 卡进行测试。
桌面管理器显示 BB 地图已安装。我还尝试在 4 台设备之一中重新安装 OS 7 和 BB Maps,但没有成功。
如果有人能帮助我找到解决方案,我将非常感激。提前致谢。
package mypackage;
import javax.microedition.location.Coordinates;
import javax.microedition.location.Location;
import net.rim.device.api.lbs.MapField;
import net.rim.device.api.ui.Keypad;
import net.rim.device.api.ui.container.MainScreen;
/**
* A class extending the MainScreen class, which provides default standard
* behavior for BlackBerry GUI applications.
*/
public final class BBMapsScreen extends MainScreen {
/**
* Creates a new MyScreen object
*/
Location location = null;
MapField mapField;
public BBMapsScreen() {
setTitle( "BB Maps test" );
double latitude = 45.42349;
double longitude = -75.69793;
Coordinates mCoordinates = new Coordinates( latitude, longitude, 0 );
mapField = new MapField();
mapField.moveTo( mCoordinates );
add( mapField );
}
}
I have a simple code that loads BB Maps for a specific latitude and longitude. This works just fine in BB 9700 with OS5 but it didn't work when I used four other devices that has OS 7. I have used same SIM card for the testing.
Desktop Manager is showing the BB Maps is installed. I have also tried buy reinstalling OS 7 and BB Maps in one of the 4 devices but no luck.
I would really appriciate If anybody could help me finding the solution. Thanks in advance.
package mypackage;
import javax.microedition.location.Coordinates;
import javax.microedition.location.Location;
import net.rim.device.api.lbs.MapField;
import net.rim.device.api.ui.Keypad;
import net.rim.device.api.ui.container.MainScreen;
/**
* A class extending the MainScreen class, which provides default standard
* behavior for BlackBerry GUI applications.
*/
public final class BBMapsScreen extends MainScreen {
/**
* Creates a new MyScreen object
*/
Location location = null;
MapField mapField;
public BBMapsScreen() {
setTitle( "BB Maps test" );
double latitude = 45.42349;
double longitude = -75.69793;
Coordinates mCoordinates = new Coordinates( latitude, longitude, 0 );
mapField = new MapField();
mapField.moveTo( mCoordinates );
add( mapField );
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论