Package com.google.maps.android
Class Context
- java.lang.Object
-
- com.google.maps.android.Context
-
public class Context extends java.lang.ObjectWrapper for the Android class android.content.Context.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContextgetApplicationContext()Performs reflection to see if the android.content.Context class is available at runtime.PackageManagergetPackageManager()Similar to Context#getPackageManager but performed through reflection.java.lang.StringgetPackageName()
-
-
-
Method Detail
-
getApplicationContext
@Nullable public static Context getApplicationContext()
Performs reflection to see if the android.content.Context class is available at runtime. If so, this method will return an instance of this class.- Returns:
- an instance of this class if invoked within an Android environment, otherwise, null
-
getPackageName
@Nullable public java.lang.String getPackageName()
- Returns:
- the package name of the Android app if available, otherwise, null
-
getPackageManager
@Nullable public PackageManager getPackageManager()
Similar to Context#getPackageManager but performed through reflection.- Returns:
- the
PackageManager
-
-