开发者

User movement direction from BlackBerry app

How do I get the direction the user is facing or 开发者_如何学JAVAthe direction the user is traveling in a BlackBerry java application?


The getCourse() method in Location will give you the degrees relative to true north. E.G

LocationProvider provider = LocationProvider.getInstance(null);
Location loc = provider.getLocation(-1);
float dir = loc.getCourse();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜