Im a newbie here in android programming. Here is my simple code just to launch the intent with the given coordinates. The problem is, how to get my current location and use it to show my current location whenever the google map intent starts.
public void viewroute (View view)
{
if (view.getId()==R.id.ViewRoute)
{
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("geo:9.8500,124.1435"));
startActivity(intent);
}
}
See Question&Answers more detail:os