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();
精彩评论