开发者

Android Project - Required Tools

I'm in the process of starting a new Android project that will:

  • Display a Google map
  • Track and record users movements
  • Display the route on the map
  • Show local points 开发者_StackOverflowon interest on the map

My question is what extra tools will I need to accomplish this? I can already get a basic Google Map working with zoom controls and place overlays etc. but my main concern is how I will track the users movements. I was thinking there maybe some sort of fleet management API but I really have no idea.

A link to some sort of tutorial would be great or even just to possible tools.


Use the class http://developer.android.com/reference/android/location/LocationManager.html to obtain the device geographical location


A Caltrans planning grant went towards creating an Android app called CycleTracks that does all of your bulleted items except the last one about points of interest.

You can download the source code here: http://www.sfcta.org/downloads/cycletracks/CycleTracks-android.zip

I haven't looked at the license to see how free you are to use it as a starting point, but I have to imagine it might be helpful just to be able to look at it even if the license is restrictive.

You can read more about it at http://www.sfcta.org/content/view/666/375.


You don't need any extra tools. Use the GPS or radio cells to get the location of the phone. This thread explains how you can get the location: How do I get the current GPS location programmatically in Android?


If you want to Track the users movement you'll need to run a webservice on a server and have the app report the location of a user at regular intervals.

Be careful though, if you don't tell the user this is what you are doing, and provide an opt out, you could be pulled from the market pretty quickly.

Be sure you aren't recording any sensitive information as well. Usually position, phone type and OS type is allowed but much more could get you in trouble.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜