public class MapFactory extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canGetMapsFingerprint(android.content.pm.PackageManager pm,
String packageName)
Sometimes
isGoogleMapsV1Supported() can give a false positive which causes a subsequent
error when starting the map activity. |
static IMap |
getMap(com.google.android.gms.maps.MapFragment aMapFragment) |
static IMap |
getMap(com.google.android.gms.maps.MapView aMapView) |
static IMap |
getMap(MapView aMapView) |
static IMap |
getMap(com.google.android.maps.MapView aMapView) |
static IMap |
getMap(com.google.android.gms.maps.SupportMapFragment aSupportMapFragment) |
static boolean |
isGoogleMapsV1Supported()
Check whether Google Maps v1 is supported on this device.
|
static boolean |
isGoogleMapsV2Supported(android.content.Context aContext)
Check whether Google Maps v2 is supported on this device.
|
public static IMap getMap(com.google.android.gms.maps.MapView aMapView)
public static IMap getMap(com.google.android.gms.maps.MapFragment aMapFragment)
public static IMap getMap(com.google.android.gms.maps.SupportMapFragment aSupportMapFragment)
public static IMap getMap(com.google.android.maps.MapView aMapView)
public static boolean isGoogleMapsV1Supported()
canGetMapsFingerprint(android.content.pm.PackageManager, java.lang.String)
public static boolean isGoogleMapsV2Supported(android.content.Context aContext)
public static boolean canGetMapsFingerprint(android.content.pm.PackageManager pm, String packageName)
isGoogleMapsV1Supported()
can give a false positive which causes a subsequent
error when starting the map activity.
This method can be called as an extra check.Copyright © 2014. All Rights Reserved.