Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7985601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:36:16+00:00 2026-06-04T11:36:16+00:00

String uri = http://maps.google.com/maps?saddr= + src_lat+,+src_lon+&daddr=+des_lat1+,+des_lon1; Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri)); intent.setClassName(com.google.android.apps.maps, com.google.android.maps.MapsActivity);

  • 0
  String uri = "http://maps.google.com/maps?saddr=" + src_lat+","+src_lon+"&daddr="+des_lat1+","+des_lon1;
   Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
   intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
   startActivity(intent);

Here is the code for drawing a route between two locations where both the source and destination’s latitude and longitude are known. But here I want to replace my location’s longitude and latitude to src_lon and src_lat, whose values I do not know and this longitude and latitude are changed with my current location. Is it possible to draw such a type of route?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:36:18+00:00Added an answer on June 4, 2026 at 11:36 am

    Try this:

    Intent i = new Intent(android.content.Intent.ACTION_VIEW,
           Uri.parse("google.navigation:q=" +destLat+ ","+destLon+""));
    this.startActivity(i);
    

    This is the best the solution I know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

public ActionResult GetGeoLocation(string address) { var uri = string.Format( http://maps.google.com/maps/api/geocode/json?address={0}&sensor=false, HttpUtility.UrlEncode(address) ); var request
public string[] SearchForMovie(string SearchParameter) { WebClientX.DownloadDataCompleted += new DownloadDataCompletedEventHandler(WebClientX_DownloadDataCompleted); WebClientX.DownloadDataAsync(new Uri( http://www.imdb.com/find?s=all&q=ironman+&x=0&y=0 )); string
string exeFile = (new System.Uri(Assembly.GetEntryAssembly().CodeBase)).AbsolutePath; string exeDir = Path.GetDirectoryName(exeFile); string fileName = Path.Combine(exeDir, @..\..\xml\SalesOrderXMLData.csv.xml);
I have code like this: string uriString = @C:\Temp\test.html; Uri uri = new Uri(uriString);
public static string ChangeUriToHttps(HttpRequest request) { string uri = request.Url.AbsoluteUri; if (!IsRequestSecure(request)) uri.Replace(http, https);
Uri test = new Uri(http%3A%2F%2F100.100.1.1%3A8080); An unhandled exception of type 'System.UriFormatException' occurred in System.dll
all! I have a text like this Some text with uri http://test.com and other
I have: String uri = @drawable/myresource.png; How can I load that in ImageView? this.setImageDrawable?
I have this method for grabbing the file name from a string URI. What
private Cursor getContacts() { // Run query Uri uri = ContactsContract.Contacts.CONTENT_URI; String[] projection =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.