public class EclairUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
clearWebViewGeoLoc()
Clear Stored Location permissions.
|
static java.lang.String |
getInstallerPackageName(java.lang.String pname,
android.app.Activity form) |
static void |
overridePendingTransitions(android.app.Activity activity,
int enterAnim,
int exitAnim)
Calls
Activity.overridePendingTransition(int, int) . |
static void |
setupWebViewGeoLoc(WebViewer caller,
android.webkit.WebView webview,
android.app.Activity activity)
Setup Dialog Box to request location permission from end-user for the Javascript
location (navigator.geolocation.getCurrentLocation()) API.
|
public static void overridePendingTransitions(android.app.Activity activity, int enterAnim, int exitAnim)
Activity.overridePendingTransition(int, int)
. This is used
to set a different animation type for screen transition animations.activity
- - The activity handling the animationenterAnim
- - The enter animation typeexitAnim
- - The exit animation typepublic static void setupWebViewGeoLoc(WebViewer caller, android.webkit.WebView webview, android.app.Activity activity)
webview
- - The WebView component running the Javascript engine that needs permissionactivity
- - Its containing activity used for placing the dialog boxpublic static void clearWebViewGeoLoc()
public static java.lang.String getInstallerPackageName(java.lang.String pname, android.app.Activity form)