How get latitude and longitude from an Android listview and put it in google maps?

I'm new to Android programming, In my mind i need an app that get latitude and longitude of a person from an embed csv file then showing this in a listview. there is no problem so far. The point is that when user clicked on a row of listview, The app show him or her the Coordinates of that latitude and longitude in google map. how can i implement this? ton of Thanks!

1 answer

  • answered 2018-01-14 10:26 tushar

    Get your latitude and longitude in a string and then use

    String url1 = "" + strLatLong;
    Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
    Uri.parse(url1)); startActivity(intent);

    It will open the location in google maps.