I want to call the inbuilt map app from my app. I came across this link. this page also gave me this link where I could really get what I want. I know
geo:latitude,longitude?z=zoom
is still in development mode.
My problem is that when ever I use this it takes to the desired location but then diverts me to my current location.
Here is the piece code I am using it
String uri = String.format("geo:%f,%f?z=18",(float)(latitude /1E6),(float)(longitude/1E6));
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(intent);
How can I fix it?