1

i have problem with this line when I create project which use Google maps API v2.

GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)) .getMap();

It's says that I need to set minSDK to be minimum 11, but I want to use this application also on devices with android minSDK 8 (2.3.3). Any ideas? Or simply: How I can set google maps API v2 to be compatible with devices with minSDK 8.

Thanks

4

3 に答える 3

2
    Fragment fragment = getSupportFragmentManager().findFragmentById(
            R.id.map);
    SupportMapFragment mapFragment = (SupportMapFragment) fragment;
    GoogleMap mMap = mapFragment.getMap();
于 2013-07-25T15:36:18.903 に答える