FileDocCategorySizeDatePackage
DelayedLaunchInfo.javaAPI DocAndroid 1.5 API6646Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.launch

DelayedLaunchInfo

public final class DelayedLaunchInfo extends Object
A delayed launch waiting for a device to be present or ready before the application is launched.

Fields Summary
private com.android.ddmlib.IDevice
mDevice
The device on which to launch the app
private final org.eclipse.core.resources.IProject
mProject
The eclipse project
private final String
mPackageName
Package name
private final String
mDebugPackageName
Debug package name
private final org.eclipse.core.resources.IFile
mPackageFile
IFile to the package (.apk) file
private final Boolean
mDebuggable
debuggable attribute of the manifest file.
private final int
mRequiredApiVersionNumber
Required ApiVersionNumber by the app. {@link AndroidManifestParser#INVALID_MIN_SDK} means no requirements
private InstallRetryMode
mRetryMode
private final IAndroidLaunchAction
mLaunchAction
Launch action.
private final AndroidLaunch
mLaunch
the launch object
private final org.eclipse.core.runtime.IProgressMonitor
mMonitor
the monitor object
private boolean
mDebugMode
debug mode flag
private int
mAttemptCount
current number of launch attempts
private boolean
mCancelled
cancellation state of launch
Constructors Summary
public DelayedLaunchInfo(org.eclipse.core.resources.IProject project, String packageName, String debugPackageName, IAndroidLaunchAction launchAction, org.eclipse.core.resources.IFile pack, Boolean debuggable, int requiredApiVersionNumber, AndroidLaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor)
Basic constructor with activity and package info.

param
project the eclipse project that corresponds to Android app
param
packageName package name of Android app
param
debugPackageName the package name of the Andriod app to debug
param
launchAction action to perform after app install
param
pack IFile to the package (.apk) file
param
debuggable debuggable attribute of the app's manifest file.
param
requiredApiVersionNumber required SDK version by the app. {@link AndroidManifestParser#INVALID_MIN_SDK} means no requirements.
param
launch the launch object
param
monitor progress monitor for launch


                                                                                                
          
                  
                  
        mProject = project;
        mPackageName = packageName;
        mDebugPackageName = debugPackageName;
        mPackageFile = pack;
        mLaunchAction = launchAction;
        mLaunch = launch;
        mMonitor = monitor;
        mDebuggable = debuggable;
        mRequiredApiVersionNumber = requiredApiVersionNumber;
    
Methods Summary
public intgetAttemptCount()

return
the number of launch attempts made

        return mAttemptCount;
    
public java.lang.StringgetDebugPackageName()
Returns the Android app process name that the debugger should connect to. Typically this is the same value as {@link getPackageName}

        if (mDebugPackageName == null) {
            return getPackageName();
        }
        return mDebugPackageName;
    
public java.lang.BooleangetDebuggable()

return
true if Android app is marked as debuggable in its manifest

        return mDebuggable;
    
public com.android.ddmlib.IDevicegetDevice()

return
the device on which to launch the app

        return mDevice;
    
public AndroidLaunchgetLaunch()

return
the launch

        return mLaunch;
    
public IAndroidLaunchActiongetLaunchAction()

return
the launch action

        return mLaunchAction;
    
public org.eclipse.core.runtime.IProgressMonitorgetMonitor()

return
the launch progress monitor

        return mMonitor;
    
public org.eclipse.core.resources.IFilegetPackageFile()

return
the application package file

        return mPackageFile;
    
public java.lang.StringgetPackageName()

return
the package name of the Android app

        return mPackageName;
    
public org.eclipse.core.resources.IProjectgetProject()

return
the eclipse project that corresponds to Android app

        return mProject;
    
public intgetRequiredApiVersionNumber()

return
the required api version number for the Android app

        return mRequiredApiVersionNumber;
    
public com.android.ide.eclipse.adt.launch.DelayedLaunchInfo$InstallRetryModegetRetryMode()

return
the installation retry mode

        return mRetryMode;
    
public voidincrementAttemptCount()
Increases the number of launch attempts

        mAttemptCount++;
    
public booleanisCancelled()

return
true if launch has been cancelled

        return mCancelled;
    
public booleanisDebugMode()

return
true if this is a debug launch

        return mDebugMode;
    
public voidsetCancelled(boolean cancelled)
Set if launch has been cancelled

        this.mCancelled = cancelled;
    
public voidsetDebugMode(boolean debugMode)

param
debugMode the debug mode to set

        this.mDebugMode = debugMode;
    
public voidsetDevice(com.android.ddmlib.IDevice device)
Set the device on which to launch the app

        mDevice = device;
    
public voidsetRetryMode(com.android.ide.eclipse.adt.launch.DelayedLaunchInfo$InstallRetryMode retryMode)

param
retryMode the install retry mode to set

        this.mRetryMode = retryMode;