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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…