谷歌地图不适用于4.03的Galaxy s3

时间:2017-03-20 06:51:04

标签: android dictionary ice

我正在研究具有Galaxy S6规格的AVD。在那里我可以毫无问题地使用SupportMapFragment

但是当客户尝试使用包含4.9英寸和Android版本4.03的Galaxy S3设备上的地图的应用程序时,该应用程序不显示地图。

我该怎么办?

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="ibas.locatixteamviewer.MapsActivity">

<!--<Button-->
    <!--android:id="@+id/button1"-->
    <!--android:layout_width="wrap_content"-->
    <!--android:layout_height="wrap_content"-->
    <!--android:background="#359c5e"-->
    <!--android:layout_alignParentTop="true"-->
    <!--android:layout_alignParentEnd="true"-->
    <!--android:padding="8dp"-->
    <!--android:layout_margin="5dp"-->
    <!--android:src="@drawable/menu_car_side_7_white"-->
    <!--android:textColor="#ffffff" />-->

</fragment>

// ----------------------------

@Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_maps);
        // Obtain the SupportMapFragment and get notified when the map is ready to be used.
        SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
                .findFragmentById(R.id.map);
        mapFragment.getMapAsync(this);

谢谢!

0 个答案:

没有答案