Код: Выделить всё
String url = "geo:" + latitude + "," + longitude
+"?z=22&q="+latitude + "," + longitude;
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
Код: Выделить всё
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
//set the type
shareIntent.setType("text/plain");
//add a subject
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "My Location");
//build the body of the message to be shared
String shareMessage = "Я сейчас здесь: \ngeo:"+latitude+","+longitude;
//add the message
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, url);
//start the chooser for sharing
startActivity(Intent.createChooser(shareIntent, "Поделиться местоположением при помощи:"));
Какие есть предложения? Склоняюсь к такой вещи, что попросту такой банальной вещи нету в андроиде.
