|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adfnmc.util.PlatformUtility
public abstract class PlatformUtility
Contains a number of useful static methods for the Blackberry platform
Field Summary | |
---|---|
static java.lang.Class |
CLASS_INSTANCE
|
static java.lang.String |
DEFAULT_INTERNALSTORAGE_LOGFILE_ROOT
|
static java.lang.String |
FILE_SEPARATOR
|
static java.lang.String |
SCROOT_BB_DEFAULT
|
static java.lang.String |
USER_HOME_PATH
|
Constructor Summary | |
---|---|
PlatformUtility()
|
Method Summary | |
---|---|
static void |
captureScreenShot(java.lang.String fileName)
|
static void |
closeSilently(javax.microedition.rms.RecordStore rs)
Close the specified RecordStore and ignore any exception that may be thrown |
static void |
deleteRecordStoreIfExists(java.lang.String rsName)
Delete the named record store if it exists. |
static java.lang.String |
getDefaultSettingsDir()
|
static java.lang.String |
getInternalReadWriteRoot()
|
static java.lang.String |
getOpenSyncOSELocation()
|
static byte |
getOSType()
Tell the call we're running on a Blackberry |
static java.lang.String |
getReadWriteRoot()
|
static java.lang.String |
getResourceString(ResourceBundle bundle,
java.lang.String key)
|
static java.lang.String |
getResourceString(ResourceBundle bundle,
java.lang.String key,
java.lang.Object[] params)
|
static java.lang.String |
getRootPath()
Return the root path for this platform |
static UiServicesProvider |
getUiServicesProvider()
|
static void |
hideWaitCursor()
Hides the wait cursor |
static void |
hideWaitCursorNative()
|
static boolean |
isDatabaseOnInternalStorageSupported()
Detects if the user home path can support databases. |
static boolean |
isHostedMode()
|
static boolean |
isRunningOnDevice()
Returns true if this is running on an actual Blackberry device; false if it's running on a simulator. |
static boolean |
isTrackballSupported()
Determines if the device supports a newer trackball or just a thumbwheel |
static boolean |
isUiThread()
Determines whether the invoking thread is the UI event loop thread. |
static boolean |
launchAppAsynchronously(java.lang.String moduleName,
java.lang.String[] args)
Launch another application on the handheld. |
static boolean |
launchAppSynchronously(java.lang.String moduleName,
java.lang.String[] args)
|
static net.rim.device.api.system.Bitmap |
loadBitmap(java.lang.String fileName)
|
static java.lang.String |
normalizeResourcePath(java.lang.String resPath)
This method ensures the resource path is appropriate for the target platform, as resource paths can be built up in a variety of ways, or passed directly from application code. |
static java.lang.String |
prependLeadingSlash(java.lang.String dir,
boolean isJarPath)
|
static boolean |
recordStoreExists(java.lang.String rsName)
Does the named RecordStore exist? |
static void |
runFromUiThreadAsynchronously(java.lang.Runnable r)
Invoke this Runnable from the UI event thread and return immediately |
static void |
runFromUiThreadSynchronously(java.lang.Runnable r)
Invoke this Runnable from the UI event thread and wait for it to finish |
static void |
setUiServicesProvider(UiServicesProvider m)
Each UI toolkit (e.g. |
static void |
showWaitCursor()
Shows the wait cursor |
static void |
showWaitCursorNative()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Class CLASS_INSTANCE
public static final java.lang.String SCROOT_BB_DEFAULT
public static final java.lang.String USER_HOME_PATH
public static final java.lang.String DEFAULT_INTERNALSTORAGE_LOGFILE_ROOT
public static final java.lang.String FILE_SEPARATOR
Constructor Detail |
---|
public PlatformUtility()
Method Detail |
---|
public static final byte getOSType()
public static final java.lang.String getRootPath()
public static final java.lang.String getDefaultSettingsDir()
public static final java.lang.String normalizeResourcePath(java.lang.String resPath)
resPath
-
public static final void closeSilently(javax.microedition.rms.RecordStore rs)
rs
- public static final void deleteRecordStoreIfExists(java.lang.String rsName)
rsName
- Name of RecordStore to deletepublic static final boolean recordStoreExists(java.lang.String rsName)
rsName
- Name of RecordStore to find
public static final boolean isRunningOnDevice()
public static final void runFromUiThreadAsynchronously(java.lang.Runnable r)
r
- Runnable to executepublic static final void runFromUiThreadSynchronously(java.lang.Runnable r)
r
- public static boolean isUiThread()
public static final boolean isTrackballSupported()
public static boolean launchAppAsynchronously(java.lang.String moduleName, java.lang.String[] args)
moduleName
- Name of app to start, like "BB_PushRegistryTest"args
- TODO
public static boolean launchAppSynchronously(java.lang.String moduleName, java.lang.String[] args)
public static final net.rim.device.api.system.Bitmap loadBitmap(java.lang.String fileName)
public static final boolean isHostedMode()
public static final void captureScreenShot(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public static final java.lang.String getReadWriteRoot()
public static final java.lang.String getInternalReadWriteRoot()
public static void showWaitCursorNative()
public static void hideWaitCursorNative()
public static final java.lang.String prependLeadingSlash(java.lang.String dir, boolean isJarPath)
public static final java.lang.String getOpenSyncOSELocation()
public static final void setUiServicesProvider(UiServicesProvider m)
m
- public static final UiServicesProvider getUiServicesProvider()
public static final void showWaitCursor()
public static final void hideWaitCursor()
public static java.lang.String getResourceString(ResourceBundle bundle, java.lang.String key)
public static java.lang.String getResourceString(ResourceBundle bundle, java.lang.String key, java.lang.Object[] params)
public static boolean isDatabaseOnInternalStorageSupported()
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |