How can I get location on map when I click the button?


How can I get location on map when I click the button?



enter image description here



I wanna show the location on MapActivity when I clicked the button.
I tried to use interface to send data from fragment to activity.
However, it's not working as I expect.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

how to run turtle graphics in Colaboratory

Export result set on Dbeaver to CSV