Build 1.0_r1(from source)

android.app
Interface IActivityWatcher

All Superinterfaces:
IInterface
All Known Implementing Classes:
IActivityWatcher.Stub

public interface IActivityWatcher
extends IInterface

Testing interface to monitor what is happening in the activity manager while tests are running. Not for normal application development.


Nested Class Summary
static class IActivityWatcher.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 boolean activityResuming(String pkg)
          The system is trying to return to an activity.
 boolean activityStarting(Intent intent, String pkg)
          The system is trying to start an activity.
 boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, byte[] crashData)
          An application process has crashed (in Java).
 int appNotResponding(String processName, int pid, String processStats)
          An application process is not responding.
 
Methods inherited from interface android.os.IInterface
asBinder
 

Method Detail

activityStarting

boolean activityStarting(Intent intent,
                         String pkg)
                         throws RemoteException
The system is trying to start an activity. Return true to allow it to be started as normal, or false to cancel/reject this activity.

Throws:
RemoteException

activityResuming

boolean activityResuming(String pkg)
                         throws RemoteException
The system is trying to return to an activity. Return true to allow it to be resumed as normal, or false to cancel/reject this activity.

Throws:
RemoteException

appCrashed

boolean appCrashed(String processName,
                   int pid,
                   String shortMsg,
                   String longMsg,
                   byte[] crashData)
                   throws RemoteException
An application process has crashed (in Java). Return true for the normal error recovery (app crash dialog) to occur, false to kill it immediately.

Throws:
RemoteException

appNotResponding

int appNotResponding(String processName,
                     int pid,
                     String processStats)
                     throws RemoteException
An application process is not responding. Return 0 to show the "app not responding" dialog, 1 to continue waiting, or -1 to kill it immediately.

Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature