public class FroyoUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
abandonFocus(android.media.AudioManager am,
java.lang.Object afChangeListener)
Utility method to abandon audio focus given an AudioManager object
|
static boolean |
focusRequestGranted(android.media.AudioManager am,
java.lang.Object afChangeListener)
Utility method that
|
static int |
getRotation(android.view.Display display)
Calls
Display.getRotation() |
static android.webkit.WebViewClient |
getWebViewClient(boolean ignoreErrors,
boolean followLinks,
Form form,
Component component)
Get a special WebViewClient that handles SslError.
|
static java.lang.Object |
setAudioFocusChangeListener(Player player)
Utility method to generate a listener for changed on Focus.
|
static android.media.AudioManager |
setAudioManager(android.app.Activity activity)
Utility method that returns and AudioManager for the Activity passed in
|
public static int getRotation(android.view.Display display)
Display.getRotation()
Surface.ROTATION_0
,
Surface.ROTATION_90
,
Surface.ROTATION_180
,
or Surface.ROTATION_180
.public static android.media.AudioManager setAudioManager(android.app.Activity activity)
activity
- the Activity that will be associated to the AudioManagerpublic static java.lang.Object setAudioFocusChangeListener(Player player)
player
- the player which focus will be watched forpublic static boolean focusRequestGranted(android.media.AudioManager am, java.lang.Object afChangeListener)
am
- the AudioManager requesting the focusafChangeListener
- the foucs listener associated to the AudioManagerpublic static void abandonFocus(android.media.AudioManager am, java.lang.Object afChangeListener)
am
- the AudioManager objectafChangeListener
- the foucs listener associated to the AudioManagerpublic static android.webkit.WebViewClient getWebViewClient(boolean ignoreErrors, boolean followLinks, Form form, Component component)
ignoreErrors
- set to true to ignore errors