0
votes

I want to open map app with code and I do like this:

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("http://maps.google.com/maps?saddr="+43.253392+","+-2.902343+"&daddr="+43.262925+","+2.931504));

            startActivity(intent);

Like this I have to put the origin address and the destiny address but how can I put in the origin address my actual location to make this automatically

1

1 Answers

2
votes

Just remove the saddr parameter

Uri.parse("http://maps.google.com/maps?daddr="+43.262925+","+2.931504));