开发者

User movement direction from BlackBerry app

开发者 https://www.devze.com 2023-02-01 06:08 出处:网络
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 rela

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

精彩评论

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