I would like to develop a location based application for android. I have been writing some code and succesfully retrieve my current location.
The thing is that i would like to be able to handle another people locations too (of course once registered in my service and accepted the terms of service).
I am not sure wether is legal or not, but, which would be the best way to develop location based applications?
Registering people in my service and handle latitude and longitud myself or maybe should i use the google latitude API? I would like to know the best approach in these cases.
I would build (and I did :)) own service for handling users' location. In case you will try to use google latitude you have to push your users register not only with you, but also with google application....
Related
I am new to android programming and I am trying to create an application that helps me to send a message/post (based on intended location) to those users using the same app in that particular location.
Can i get some resources on this?
Also currently i am trying to implement the feature wherein i post a message about a particular location on my wall and that same message has to seen by the users in that location. How can i implement this.
please post suggestions/open-srouce codes, examples etc.
thank you
You're probably looking for solutions related to the Geo-Fences concept.
There are plenty of applications that can use your mobile coordinates to interact and provide feedback. Notice that the accuracy of the mobile phone GPS is not THAT good, but people can play :-)
Take a look on this application -- https://www.onx.ms/#!landingPage
Official Android docs about geofencing here -- http://developer.android.com/intl/pt-br/training/location/geofencing.html
Someone told me it was a good idea to use the Google Play API to handle location updates. I am needing to receive very frequent location updates in order to return the users distance.
If this is a good idea, does anyone know if it allows updates in the background? Meaning, when a user leaves the app? Is it even a good idea to use this API?
I couldn't find anything about this in its docs.
I need to create an application that identifies the best path for a person. But it would need to identify the importance of uphill and downhill on the way.
How getting this information of which path would be straight?
This app is for android.
Tanks!
Check out Elevation API
and Distance Matrix API
The distance API may be the only thing you need.
Route information would be obtained by the Directions API
A combination between the 3 may be somewhat necessary, but once you setup an HttpClient to the google server you can just create back-end web service calls to grab the information you need on your android phone.
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 on 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.
I am planning to create an application which can track the location of a certain person using open street maps. But I don't know where to start.
Have a look at the sourcecode of osmdroid, an opensource reimplementation of google's maps app using openstreetmap. They even provide a jar you can use! Should get you up to speed in no time. And possibly the official documentation on Location & Maps...