Package com.google.maps.android
Class Context
- java.lang.Object
-
- com.google.maps.android.Context
-
public class Context extends java.lang.Object
Wrapper for the Android class android.content.Context.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Context
getApplicationContext()
Performs reflection to see if the android.content.Context class is available at runtime.PackageManager
getPackageManager()
Similar to Context#getPackageManager but performed through reflection.java.lang.String
getPackageName()
-
-
-
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
-
-