I have seen some applications that display on a map the users who have the application in use or installed.
I'd like to implement something like this in my project, the problem is I do not know where to start ..
anyone know any reference I can read?
This is an image to try to explain what I want
Thanks in advance
Regards
When user installs app, get its location using GPS, send it to your Server save it there.
When you want to show map, get all locations saved on server and display it on map.
You can update user location each time application is launched, updated it on server as well.
Related
I want to make a android app using google maps.In this app I want to share my location to my friend like a request, Once he accepted my request he will get the route map to my location (previously I shared) and also I want to see his moving path towards my location. Can any one please suggest me how is possible to sharing locations.
I think the best way to control that sharing is using socket.IO
on the device you catch your position then emit your position to the server and on the server side you emit to other devices.
Hope helped you
For sharing locations and showing it on map, you need to do it in following steps
Read your location using android APIs.
Once he accepts your request, read his location and share it to your profile through some API to server & keep on updating location on every changed distance delta or at some time interval and share that too.
Now you have co ordinates of both locations. Use them to fill data to Google Maps API and load map in one of your activity. Whenever you will receive updated location of your friend from your server, update the map and draw path between them using google maps api.
For showing map to your location # your friends side, same thing needs to be done. If your location will also change then you will have to provide your updated location to server timely as mentioned in step 2
What if you send a geo: link to your friend? Like geo:62.0,-7.0 ? That should give the receiver a choice between all his geo-capable apps. Google Maps, OsmAnd, maybe some weather service...
I'm making an android App which has a function of showing users' current location on Google Map.
I got trouble on tracking the users' locations and placing those locations on a map. I could get A user's current location and place it on the map, But have NO Idea how to do this for all the users' locations on the same time.
I was thinking that I first send all the users' locations to the Parse.com and get them back and show them in a map, But I think this doesn't make sense because that is too much of work, In other words, I can't upload so many users' information on the same time (like per every second).
Is there any other way to solve this problem?
Any tips Please!
https://www.dropbox.com/s/b4h2to1cdbx087b/SAmpleApp.zip?dl=0 try this i have done similar few weeks back whole src code is in it,you might are gonna need few libraries to run it, using same hope this will help.
This is what you need :
parse any wall sample project This projects included the code on how to solve your problem without any other libraries. It will sync with the database while you move within the app. so great because user will not even know it's syncing in the background. I have tested this so it takes about 2-5 seconds to update the map after you add a new location to the parse backend.
im running and app and i want it to be able to let the user pick the location like whatsapp does when you are sharing a location. The main idea is to let the user decide to show a place close where he is. Example:
You should check Google Places API (https://developers.google.com/places/training/?hl=en), send a query to them with your location and the filters you want to specify: kind of near places, distance, sort by relevance or distance... and show them where you need =)
I am developing an app that allows the user to share an image to Google+. When I share the image into Google+ from my app, I want to be able to specify the location associated with the image (not the user's present location as set by Google+). Is there a way to do this? I.e., by setting some extra? Thanks!
When ever user takes an image thruogh your app,take the corresponding Geopoints simultaniously and save it to a db. Whenever the user try to upload the photo take the corresponding Geopoints associated with the imagepath and post it to G+ I hope this will be a good possibility to solve this problem.
If I remember correctly, images shared with Google+ need to be done via a ContentProvider. If you aren't already, can you add the LATITUDE and LONGITUDE columns to your content provider?
http://developer.android.com/reference/android/provider/MediaStore.Images.ImageColumns.html
Currently, it is not possible to prepopulate the "Location" portion of a post on behalf of the user. If the user previously used the location field, it will be enabled for subsequent posts. If they turned it off, they would have to reenable it for subsequent posts.
I'm rather new to android development but I have a little project that I'd like to do and would like to know if it was possible to do.
Basically what I'd like is for an Android app to add location nodes to an external database and also allow the app to read the database and display all of the nodes stored in it. This allows a user of the app app to add nodes to the database and any other user of this app will display the nodes when the app is launched and vice versa.
Is this possible to achieve? And if so what sort of resources would I need to accomplish this?
I'm guessing I might need to use the Google Map API?
To show locations on a map use a MapActivity. If you need to get the user's location use the LocamationManager.