danger.app
Class Bundle

java.lang.Object
  |
  +--danger.app.Bundle

public final class Bundle
extends java.lang.Object


Field Summary
static int SPLASH_HEIGHT
           
static int SPLASH_WIDTH
           
 
Method Summary
static void checkForBundles()
          Used by the OS to load more bundles as needed.
 boolean containsApp(Application app)
          Discover if this Bundle corresponds to the provide Application object
static Bundle findByClassName(java.lang.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(java.lang.String name)
          Return a bundle that has a Display Name which matches the provided string, or null if no such Bundle exists.
static Bundle findByName(java.lang.String name)
          Return a bundle that has a name which matches the provided string, or null if no such Bundle exists.
 java.lang.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
 java.lang.String getDisplayName()
          Return the application name suitable for display in the Launcher, and other human-readable places
 int getID()
          This identifier is used by some internal system code.
 ImmutableBitmap getLargeIcon()
          Return a 32x32 (hopefully) large icon bitmap
static Bundle[] getList()
          Return an array containing all Bundles in the system.
 java.lang.String getName()
           
 Bitmap getPreviewScreen()
           
 ResourceDatabase getResources()
          Return the Resource Database
 int getSize()
          size in flashrom in bytes.
 ImmutableBitmap getSmallIcon()
          Return a 16x16 (hopefully) small icon bitmap
 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()
          Returns true if the DIRTY state is set -- indicates preview screen is due for redraw in Launcher
 boolean launchOnBoot()
          Return true if this app should start on system boot
 void quitApp()
          Send a QUIT request to the application (if it's started)
 void resume()
          Send a RESUME request to the application (if it's started)
 void sendEvent(Event e)
          Send an Event to the application (if it's started)
 void sendNetworkEvent(Event e)
          Send a Network Event to the application (if it's started)
 void setDirty()
          Set the DIRTY state -- should only be used by launcher
 void setDisplayName(java.lang.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()
          Send a SUSPEND request to the application (if it's started)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPLASH_WIDTH

public static final int SPLASH_WIDTH

SPLASH_HEIGHT

public static final int SPLASH_HEIGHT
Method Detail

getName

public java.lang.String getName()

getClassName

public java.lang.String getClassName()
Return the class name of the Application class that will be instantiated to launch the app

getDisplayName

public java.lang.String getDisplayName()
Return the application name suitable for display in the Launcher, and other human-readable places

setDisplayName

public void setDisplayName(java.lang.String appName)
Change the display name.

launchOnBoot

public boolean launchOnBoot()
Return true if this app should start on system boot

showInChooserRing

public boolean showInChooserRing()
Return true if this app should be shown in the chooser ring

showInChooserMenu

public boolean showInChooserMenu()
Return true if this app should be shown in the chooser menu

setShowInChooserMenu

public void setShowInChooserMenu(boolean showInChooserMenu)
Change the show in chooser menu flag. Use to hide apps in the chooser menu dynamically.

invisibleToUser

public boolean invisibleToUser()
Return true if this app should be invisible to the user. That means NOT showing up in the Jump Shortcuts and system info.

isDebuggingTool

public boolean isDebuggingTool()
Return true if this app is a debugging tool.

getLargeIcon

public ImmutableBitmap getLargeIcon()
Return a 32x32 (hopefully) large icon bitmap

getSmallIcon

public ImmutableBitmap getSmallIcon()
Return a 16x16 (hopefully) small icon bitmap

sendEvent

public void sendEvent(Event e)
Send an Event to the application (if it's started)

sendNetworkEvent

public void sendNetworkEvent(Event e)
Send a Network Event to the application (if it's started)

suspend

public void suspend()
Send a SUSPEND request to the application (if it's started)

resume

public void resume()
Send a RESUME request to the application (if it's started)

quitApp

public void quitApp()
Send a QUIT request to the application (if it's started)

getPreviewScreen

public Bitmap getPreviewScreen()

containsApp

public boolean containsApp(Application app)
Discover if this Bundle corresponds to the provide Application object

isDirty

public boolean isDirty()
Returns true if the DIRTY state is set -- indicates preview screen is due for redraw in Launcher

setDirty

public void setDirty()
Set the DIRTY state -- should only be used by launcher

getResources

public ResourceDatabase getResources()
Return the Resource Database

getComponentVersion

public void getComponentVersion(ComponentVersion cv)
Fill out the Component Version info for this Bundle

checkForBundles

public static void checkForBundles()
Used by the OS to load more bundles as needed.

findByDisplayName

public static Bundle findByDisplayName(java.lang.String name)
Return a bundle that has a Display Name which matches the provided string, or null if no such Bundle exists.

findByClassName

public static Bundle findByClassName(java.lang.String name)
Return a bundle that has a Class Name which matches the provided string, or null if no such Bundle exists.

findByName

public static Bundle findByName(java.lang.String name)
Return a bundle that has a name which matches the provided string, or null if no such Bundle exists.

getList

public static Bundle[] getList()
Return an array containing all Bundles in the system.

getID

public int getID()
This identifier is used by some internal system code. Do not count on it remaining constant or having any particular meaning

getSize

public int getSize()
size in flashrom in bytes. on the simulator it returns something random.


Danger Confidential. Copyright © 2000-2003, Danger Inc.