|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.app.Bundle
public final class Bundle
A Bundle contains information related to an application.
| Field Summary | |
|---|---|
static int |
SPLASH_HEIGHT
Deprecated. Use SplashScreen.getMaxHeight() instead. |
static int |
SPLASH_WIDTH
Deprecated. Use SplashScreen.getMaxWidth() instead. |
| Method Summary | |
|---|---|
static void |
checkForBundles()
Deprecated. For internal use only. |
boolean |
containsApp(Application app)
Determine if this Bundle corresponds to the provided Application object. |
static Bundle |
findByClassName(String name)
Return a bundle that has a Class Name which matches the provided string, or null if no such Bundle exists. |
static Bundle |
findByDisplayName(String name)
Return a bundle that has a Display Name which matches the provided string, or null if no such Bundle exists. |
static Bundle |
findByID(int id)
Deprecated. For internal use only. |
static Bundle |
findByName(String name)
Return a bundle that has a name which matches the provided string, or null if no such Bundle exists. |
String |
getChooserCategory()
Return the chooser category where the application *hopes* to be placed. |
String |
getClassName()
Return the class name of the Application class that will be instantiated to launch the app |
void |
getComponentVersion(ComponentVersion cv)
Fill out the Component Version info for this Bundle |
String |
getDisplayName()
Return the application name suitable for display in the Launcher, and other human-readable places |
int |
getID()
Deprecated. For internal use only. |
ImmutableBitmap |
getLargeIcon()
Return the large icon for the application associated with this bundle. |
static int |
getLargeIconSize()
Return the maximum size (in pixels) for the large application icon, which is used in the jump screen. |
static Bundle[] |
getList()
Return an array containing all Bundles in the system. |
ImmutableBitmap |
getMiniIcon()
Return the mini icon for the application associated with this bundle. |
static int |
getMiniIconSize()
Return the maximum size (in pixels) for the mini icon, which is used in the Quick Jump window. |
String |
getName()
Get the package name of the application associated with this bundle. |
Bitmap |
getPreviewScreen()
Deprecated. |
RecordingPen.Record |
getPreviewScreenRecord()
Get a RecordingPen.Record which corresponds to the splash screen associated with this application bundle. |
ResourceDatabase |
getResources()
Return the Resource Database |
int |
getSize()
size in flashrom in bytes. |
ImmutableBitmap |
getSmallIcon()
Return the small icon for the application associated with this bundle. |
static int |
getSmallIconSize()
Return the maximum size (in pixels) for the small application icon, which is used in the title bar. |
String |
getVendor()
Get the vendor of the application associated with this bundle. |
boolean |
invisibleToUser()
Return true if this app should be invisible to the user. |
boolean |
isDebuggingTool()
Return true if this app is a debugging tool. |
boolean |
isDirty()
Deprecated. For internal use only. |
boolean |
isMIDlet()
Determine if this Bundle is associated with a MIDlet. |
boolean |
isRunning()
Return true if the application associated with this
bundle is actually running. |
boolean |
launchOnBoot()
Return true if this app should start on system boot |
void |
resume()
Deprecated. For internal use only. |
void |
sendNetworkEvent(Event e)
Deprecated. For internal use only. |
protected void |
setChooserFolderLabel(CharSequence label)
Deprecated. For internal use only. |
void |
setDirty()
Deprecated. For internal use only. |
void |
setDisplayName(String appName)
Change the display name. |
void |
setShowInChooserMenu(boolean showInChooserMenu)
Change the show in chooser menu flag. |
boolean |
showInChooserMenu()
Return true if this app should be shown in the chooser menu |
boolean |
showInChooserRing()
Return true if this app should be shown in the chooser ring |
void |
suspend()
Deprecated. For internal use only. |
void |
sysSendEvent(Event e)
Deprecated. For internal use only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SPLASH_WIDTH
SplashScreen.getMaxWidth() instead.public static final int SPLASH_HEIGHT
SplashScreen.getMaxHeight() instead.| Method Detail |
|---|
public String getName()
public String getVendor()
Get the vendor of the application associated with this bundle.
This is the ID_APP_VENDOR string specified in the application's resource file.
Returns null if no vendor has been specified.
public String getClassName()
public String getDisplayName()
public void setDisplayName(String appName)
public String getChooserCategory()
public boolean launchOnBoot()
public boolean showInChooserRing()
public boolean showInChooserMenu()
public void setShowInChooserMenu(boolean showInChooserMenu)
public boolean invisibleToUser()
public boolean isDebuggingTool()
public static int getLargeIconSize()
public static int getSmallIconSize()
public static int getMiniIconSize()
public ImmutableBitmap getLargeIcon()
Application.setLargeIcon(danger.ui.Bitmap).
public ImmutableBitmap getSmallIcon()
Application.setSmallIcon(danger.ui.Bitmap).
public ImmutableBitmap getMiniIcon()
Application.setMiniIcon(danger.ui.Bitmap).
public boolean isMIDlet()
public boolean isRunning()
true if the application associated with this
bundle is actually running.
true if the app is running, false
if notpublic void sysSendEvent(Event e)
public void sendNetworkEvent(Event e)
public void suspend()
public void resume()
public Bitmap getPreviewScreen()
protected void setChooserFolderLabel(CharSequence label)
public RecordingPen.Record getPreviewScreenRecord()
public boolean containsApp(Application app)
public boolean isDirty()
public void setDirty()
public ResourceDatabase getResources()
public void getComponentVersion(ComponentVersion cv)
public static void checkForBundles()
public static Bundle findByDisplayName(String name)
public static Bundle findByClassName(String name)
public static Bundle findByName(String name)
public static Bundle findByID(int id)
public static Bundle[] getList()
public int getID()
public int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||