com.googlecode.android_scripting.facade
Class ApplicationManagerFacade

java.lang.Object
  extended by com.googlecode.android_scripting.jsonrpc.RpcReceiver
      extended by com.googlecode.android_scripting.facade.ApplicationManagerFacade

public class ApplicationManagerFacade
extends RpcReceiver

Facade for managing Applications.


Constructor Summary
ApplicationManagerFacade(FacadeManager manager)
           
 
Method Summary
 void forceStopPackage(java.lang.String packageName)
           
 java.util.Map<java.lang.String,java.lang.String> getLaunchableApplications()
           
 java.util.List<java.lang.String> getRunningPackages()
           
 void launch(java.lang.String className)
           
 void shutdown()
          Invoked when the receiver is shut down.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationManagerFacade

public ApplicationManagerFacade(FacadeManager manager)
Method Detail

getLaunchableApplications

@Rpc(description="Returns a list of all launchable application class names.")
public java.util.Map<java.lang.String,java.lang.String> getLaunchableApplications()

launch

@Rpc(description="Start activity with the given class name.")
public void launch(@RpcParameter(name="className")
                                  java.lang.String className)

getRunningPackages

@Rpc(description="Returns a list of packages running activities or services.",
     returns="List of packages running activities.")
public java.util.List<java.lang.String> getRunningPackages()

forceStopPackage

@Rpc(description="Force stops a package.")
public void forceStopPackage(@RpcParameter(name="packageName",description="name of package")
                                            java.lang.String packageName)

shutdown

public void shutdown()
Description copied from class: RpcReceiver
Invoked when the receiver is shut down.

Specified by:
shutdown in class RpcReceiver