Skip to content

Most visited

Recently visited

navigation

MultiDexTestRunner

public class MultiDexTestRunner
extends InstrumentationTestRunner

java.lang.Object
   ↳ android.app.Instrumentation
     ↳ android.test.InstrumentationTestRunner
       ↳ com.android.test.runner.MultiDexTestRunner


This class is deprecated.
Use AndroidJUnitRunner instead. New tests should be written using the Android Testing Support Library.

InstrumentationTestRunner for testing application needing multidex support.

Summary

Inherited constants

From class android.test.InstrumentationTestRunner
From class android.app.Instrumentation

Public constructors

MultiDexTestRunner()

Public methods

void onCreate(Bundle arguments)

Called when the instrumentation is starting, before any application code has been loaded.

Inherited methods

From class android.test.InstrumentationTestRunner
From class android.app.Instrumentation
From class java.lang.Object
From interface android.test.TestSuiteProvider

Public constructors

MultiDexTestRunner

MultiDexTestRunner ()

Public methods

onCreate

void onCreate (Bundle arguments)

Called when the instrumentation is starting, before any application code has been loaded. Usually this will be implemented to simply call start() to begin the instrumentation thread, which will then continue execution in onStart().

If you do not need your own thread -- that is you are writing your instrumentation to be completely asynchronous (returning to the event loop so that the application can run), you can simply begin your instrumentation here, for example call startActivity(Intent) to begin the appropriate first activity of the application.

Parameters
arguments Bundle: Any additional arguments that were supplied when the instrumentation was started.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)