public abstract class Application
extends javax.microedition.midlet.MIDlet
Modifier and Type | Field and Description |
---|---|
static boolean |
app_terminating
Is the app in a state where it's terminating?
|
static java.lang.String[] |
debug_strings |
static javax.microedition.lcdui.Display |
display
Current display object
|
static Application |
instance
Our instance
|
Constructor and Description |
---|
Application() |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String debug_string,
int debug_flag)
Debug some string either to the console or (optionally, on a flag) to an array which could be output to the screen
|
void |
destroyApp(boolean unconditional)
Application is destroyed
|
java.lang.String |
getStartFileAbsolutepath() |
java.lang.String |
getStartFileMimeType() |
java.lang.String |
getStartScheme() |
java.lang.String |
getStartURL() |
void |
onStartAppFromFile(java.lang.String mimeType,
java.lang.String absolutePath)
Will be called if this application was started by opening a file with registered MIME-type.
Important: If you wish to override this method and still use getStartFileMimeType() or
getStartFileAbsolutepath() , you must include a call to
super.onStartAppFromFile(mimeType, absolutePath) from your override. |
void |
onStartAppFromURL(java.lang.String scheme,
java.lang.String url)
Will be called if this application was started from URL with registered URI scheme.
Important: If you wish to override this method and still use getStartScheme() or
getStartURL() , you must include a call to super.onStartAppFromURL(scheme, url)
from your override. |
void |
pauseApp()
Application is paused
|
abstract void |
setAppCanvas()
Used to set the canvas class used for this application
|
void |
startApp()
Application is started
|
public static Application instance
public static javax.microedition.lcdui.Display display
public static boolean app_terminating
public static java.lang.String[] debug_strings
public void onStartAppFromURL(java.lang.String scheme, java.lang.String url)
getStartScheme()
or
getStartURL()
, you must include a call to super.onStartAppFromURL(scheme, url)
from your override.scheme
- - URI schemeurl
- - URL that caused this callpublic void onStartAppFromFile(java.lang.String mimeType, java.lang.String absolutePath)
getStartFileMimeType()
or
getStartFileAbsolutepath()
, you must include a call to
super.onStartAppFromFile(mimeType, absolutePath)
from your override.mimeType
- - MIME-type of the fileabsolutePath
- - absolute path to the native file. This path can be used in Connector.openInputStream() to read file's content.public java.lang.String getStartFileAbsolutepath()
public java.lang.String getStartFileMimeType()
public java.lang.String getStartScheme()
public java.lang.String getStartURL()
public abstract void setAppCanvas()
public void startApp()
startApp
in class javax.microedition.midlet.MIDlet
public void pauseApp()
pauseApp
in class javax.microedition.midlet.MIDlet
public void destroyApp(boolean unconditional)
destroyApp
in class javax.microedition.midlet.MIDlet
public void debug(java.lang.String debug_string, int debug_flag)