Code example for ActivityInfo

Methods: callAttach

0
                                                      .getPackage() 
                                                      .getName(), mActivity.getClass()
                                                                           .getName()); 
        Intent intent = new Intent(Intent.ACTION_MAIN);
        intent.setComponent(cn);
        ActivityInfo info = new ActivityInfo();
        CharSequence title = mActivity.getClass()
                                      .getName(); 
        mMockParent = new MockParent();
        String id = null;
        ActivityTrojanHorse.callAttach(getInstrumentation(), mActivity, mFragmentContext, token, mApplication, intent, info, title, mMockParent, id, lastNonConfigurationInstance);
 
        mActivityAttached = true;
    } 
 
    /* 
     * (non-Javadoc) 
     *  
     * @see android.test.InstrumentationTestCase#tearDown() 
     */ 
Contextual code suggestions in your IDE  Get Codota for Java