danger.app
Class BundleManager

java.lang.Object
  extended by danger.app.BundleManager


EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.

public class BundleManager
extends Object

Wrapper for common bundle management operations.


Method Summary
static void discardBundle(Bundle bundle, boolean removeDataStores)
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Discard the given bundle from the system.
static Bundle[] getBundles()
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Get a list of the bundles in the system.
static void installBundle(byte[] data)
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Install the given bundle into memory.
static boolean isBundleSaved(Bundle bundle)
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Check whether the given bundle is saved to flash or just memory-resident.
static void saveBundle(Bundle bundle)
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Save the given bundle down to flash.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

installBundle

public static void installBundle(byte[] data)
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Install the given bundle into memory. Bundles installed using this method will not persist across device reboots. To make this bundle persist across device reboots, see saveBundle().

Parameters:
data - raw bundle file
Throws:
NullPointerException - if data is null

saveBundle

public static void saveBundle(Bundle bundle)
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Save the given bundle down to flash. Bundles saved this way will persist across device reboots. Before being saved, bundles must first be installed with installBundle().


discardBundle

public static void discardBundle(Bundle bundle,
                                 boolean removeDataStores)
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Discard the given bundle from the system. If the bundle exists in flash, it will be removed. DataStores associated with the application may be optionally removed.


getBundles

public static Bundle[] getBundles()
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Get a list of the bundles in the system.


isBundleSaved

public static boolean isBundleSaved(Bundle bundle)
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Check whether the given bundle is saved to flash or just memory-resident.