Android APIs
public class

MultiDexApplication

extends Application
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Application
         ↳ android.support.multidex.MultiDexApplication

Class Overview

Minimal MultiDex capable application. To use the legacy multidex library there is 3 possibility:

  • Declare this class as the application in your AndroidManifest.xml.
  • Have your Application extends this class.
  • Have your Application override attachBaseContext starting with
    protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    MultiDex.install(this);

Summary

[Expand]
Inherited Constants
From class android.content.Context
From interface android.content.ComponentCallbacks2
Public Constructors
MultiDexApplication()
Protected Methods
void attachBaseContext(Context base)
Set the base context for this ContextWrapper.
[Expand]
Inherited Methods
From class android.app.Application
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks2
From interface android.content.ComponentCallbacks

Public Constructors

public MultiDexApplication ()

Protected Methods

protected void attachBaseContext (Context base)

Set the base context for this ContextWrapper. All calls will then be delegated to the base context. Throws IllegalStateException if a base context has already been set.

Parameters
base The new base context for this wrapper.