L leitor79 Active Member Licensed User Longtime User Dec 12, 2018 #1 Hi, I want my app to have a button to share user coordinates (selected on a mapfragment) with a desired app (waze, google maps or whatever the user chooses). I've read here but the example download link is down. Which would be the approach to achieve this? Regards!
Hi, I want my app to have a button to share user coordinates (selected on a mapfragment) with a desired app (waze, google maps or whatever the user chooses). I've read here but the example download link is down. Which would be the approach to achieve this? Regards!
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2018 #2 I wouldn't use any library for such things. You only need to find the intent structure. Google can help you with this. Code: Copy Dim in As Intent in.Initialize(in.ACTION_VIEW, $"geo:${lat},${lon}?q=${lat},${lon}"$) StartActivity(in) Upvote 0
I wouldn't use any library for such things. You only need to find the intent structure. Google can help you with this. Code: Copy Dim in As Intent in.Initialize(in.ACTION_VIEW, $"geo:${lat},${lon}?q=${lat},${lon}"$) StartActivity(in)
L leitor79 Active Member Licensed User Longtime User Dec 12, 2018 #3 Thank you very much! I've noticed your code opens google map directly. Is there a way to open the "share menu", the one with the list of apps the user can choose? Could you provide some tips about what do I have to search in google? I'm not familiar with android development outside b4a... Thank you very much! Upvote 0
Thank you very much! I've noticed your code opens google map directly. Is there a way to open the "share menu", the one with the list of apps the user can choose? Could you provide some tips about what do I have to search in google? I'm not familiar with android development outside b4a... Thank you very much!
Erel B4X founder Staff member Licensed User Longtime User Dec 12, 2018 #4 leitor79 said: I've noticed your code opens google map directly. Click to expand... Try it with: Code: Copy in.WrapAsIntentChooser("Choose app") StartActivity(in) leitor79 said: Could you provide some tips about what do I have to search in google? Click to expand... 'android intent share location' Upvote 0
leitor79 said: I've noticed your code opens google map directly. Click to expand... Try it with: Code: Copy in.WrapAsIntentChooser("Choose app") StartActivity(in) leitor79 said: Could you provide some tips about what do I have to search in google? Click to expand... 'android intent share location'