public class RCSolo
extends Solo
Solo
, there is a protected field activityUtils,
which provides the API getAllOpenedActivities(), so RCSolo
is created as subclass of Solo
.
But ActivityUtils
is only visible within package com.jayway.android.robotium.solo
, so the
class RCSolo
is put in the same package.Solo#checker
Solo#asserter
Solo#clicker
Solo#dialogUtils
Solo#getter
Solo#presser
Solo#screenshotTaker
Solo#scroller
Solo#searcher
Solo#sender
Solo#setter
Solo#sleeper
Solo#textEnterer
Solo#viewFetcher
Solo#waiter
Solo#webUrl
Solo#webUtils
com.jayway.android.robotium.solo
.Constructor and Description |
---|
RCSolo(Instrumentation instrumentation) |
RCSolo(Instrumentation instrumentation,
Activity activity) |
Modifier and Type | Method and Description |
---|---|
void |
finishInactiveActivities()
Deprecated.
|
java.util.List<Activity> |
getAllOpenedActivities()
This method is removed from
Solo from Robotium4.1 release.Expose it in RCSolo to keep the backward compatibility. |
public RCSolo(Instrumentation instrumentation)
public RCSolo(Instrumentation instrumentation, Activity activity)
public java.util.List<Activity> getAllOpenedActivities()
Solo
from Robotium4.1 release.RCSolo
to keep the backward compatibility.public void finishInactiveActivities()
Solo
from Robotium4.1 release.The Activity handling has changed since that method was introduced. Only weak references of Activities are now stored and Activities are now also removed as soon as new ones are opened. Due to these changes finishInactiveActivities has lost its purpose. The old implementation introduced crashes as keeping references to Activities resulted in memory not being freed.
Expose it in RCSolo
as a do-nothing to keep the backward compatibility.