0

我正在开发具有 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);

谢谢!

4

0 回答 0