Code example for Instrumentation

0
  public SpadeModule() 
  { 
    super(); 
 
    TiApplication appContext = TiApplication.getInstance();
    mInst = new Instrumentation();
    Activity activity = appContext.getCurrentActivity();
 
    mSolo = new Solo(mInst, activity);
 
    mSleeper = new Sleeper();
    mActivityUtils = new ActivityUtils(mInst, activity, mSleeper);
    mViewFetcher = new ViewFetcher(mActivityUtils);
    mScroller = new Scroller(mInst, mActivityUtils, mViewFetcher, mSleeper);
    mSearcher = new Searcher(mViewFetcher, mScroller, mSleeper);
    mClicker = new Clicker(mViewFetcher, mScroller, mRobotiumUtils, mInst, mSleeper, mWaiter);
    mTextEnterer = new TextEnterer(mInst, mClicker);
  } 
 
  @Kroll.onAppCreate 
  public static void onAppCreate(TiApplication app)
  {