2
显示Google地图,但在加载地图时,标题栏消失。 有没有解决方案来显示标题栏?如何在加载谷歌地图时显示标题栏
private void calc_short_Distance() {
String uri = "http://maps.google.com/maps?saddr=" + currentLatitude+","+currentLongitude+"&daddr="+fixedLatitude+","+fixedLongitude;
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));
intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
//***Title bar displayed upto here and after loading intent it disappear
startActivity(intent);
}
您应该将您的代码(xml和java)作为您的问题的一部分发布 - 但不是整个代码,只有相关部分。 –
@AleksG我已经添加了代码.. – nKandel
您正在打开默认浏览器或默认地图应用程序。它不是你的应用程序的一部分,所以你不能在其他应用程序中显示标题栏 –