I am developing an android app where more than one user can connect like whatsapp along with their location.
For example,
I have connected with three friends called A, B, and C. I can able to get their location in latitude&longitude and showing those in the google map. I implemented that.
If I start moving I can see that my location also moving. I implemented this using GPS.
Here I also want to show the navigation of my friends if they started moving. (Multiple navigation at one time) How can I achieve this? Is this possible with Google Maps?
I searched for solutions in SO and google. Cant find. Help needed.
Related
i have create a tracking project using maps from Google on android kotlin, and i want to create more that user can go to somewhere with navigation (so there's two point, a current location point and destination point). i want to implement turn by turn navigation sdk from mapbox? is it possible to do that? have you build it before?
ya turn by turn navigation is tricky.Map box should make it easier though u just have to implement there sdk in your project and they also have docs on how to use the Map box sdk. only downfall is you have to pay for it.
i would advise if you are creating a personal project try creating a location listener and update current position of the device on a google maps intent. you can then just create your own navigation app ( its abit of a longer way around it but you would have more control over the navigation and plus its free)
In my app I need to be able to display google map as overlay up on other applications.
For doing so I am using service and window manager to show google map view as TYPE_SYSTEM_ALERT .
I am already able to the display the map twice inside the activity using 2 different google API clients with same valid API key.
I can't figure it out but for some reason when attaching the 'View' which contains 'SupportMapFragment' to 'WindowManager' the map wont display , only google logo at the bottom .
I was thinking maybe it has to do something with pixel format ?
Any suggestions ?
It has to do something with kind of views which window manager supporting , maybe window manager cannot display fragments ?
Is it possible to archive what am I trying to ?
There is no problem in the implementation so I don't past code here .
maybe window manager cannot display fragments ?
Correct. Use MapView directly. It may not work especially well in your case, as not everything is designed to go in an alert window, but it is the only chance that you have.
Also note that your app may have problems starting with Android O, as Google slowly starts to rein in apps that do these sorts of overlays.
I'm working on a cross platform (iOS & Android) app that requires the user to follow a (possibly closed) path made of several destinations.
So far it seems that my best option is to find a way to open Google Maps with a URL like this: https://www.google.com/maps/dir/San+Jose,+CA/GooglePlex/San+Francisco,+CA
Besides the fact that such url opens the browser first and not the app directly, Google Maps doesn't enter the "navigation" mode.
I analyzed the SDK and there doesn't seem to be a way to instantiate a path with multiple destinations.
Is there a way to achieve navigation on multiple destinations in Google Maps? If not, any alternative with "navigation" mode?
Yes you can achieve navigation in multiple direction
1) in navigation map first it has been showing one direction , there your calling one api, check that api you will get multiple direction data, just you have to parse the all data by using loop and need to do custom implementation.
There is a way to show the nearby places screen of facebook?
(Exactly the screen if you press the CHECK-IN button in facebook app).
It's presents a screen with a list of nearby places.
If there is a url scheme (fb:// ...) to reach that screen - it will be the perfect solution for me.
(I've tried fb://nearby it is not exactly the screen that i am looking for)
The second options (The hard way) if there is no simple way like above, is to implement it using facebook SDK i guess...
The final result of what I need is presenting the user his nearby places, and he can click on one and it will check-in there.
I'm new to android development and I am stuck with a problem.
I am trying to develop an android application that shows the user the location of atms, hotels etc on a google map. I haven't started working on the gps yet. As of now the app works something like this, first of all a map loads on which I intend to show the users current location. On clicking on the menu button there are 3 options:
services
about us
quit
On selecting services option the following options are available.
atm
hospital
hotel
etc
on selecting the atm option we will be shown a screen displaying some text.
on using the menu for this screen we get the following menu items.
sbi
canara
hdfc
icici
etc
my intention is that when the user selects the sbi option a map should load showing the various places where there are sbi atms near where the user is currently.
I started out with the google map api but I had to quit because when I select one of the menu options, such as "sbi", the map does not load, instead I am getting the error "application failed to load". Basically I was trying to load a map activity from my first map activity. After googling a bit without any results I tried another approach. I tried to download and view the static map of the location I wanted. It worked, but when I tried to download the static map when I select an option like before I get the same error. "application failed to load". then I tried downloading 2 images from inside onCreate that worked. I cannot do the same thing outside the onCreate. for eg.inside the function for the selected option.
I have given the link to my code below.
If someone can please look into this it would be of great help to me. I have been sitting with this problem for days now. And its urgent too. I have done the project in eclipse.
httpDownload.java --- http://dpaste.com/195981/
I looked at your code.
I think the problem is that you didn't do setContentView before loading the map outside OnCreate.