to top
Android APIs
public class


extends ContextWrapper
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.content.MutableContextWrapper

Class Overview

Special version of ContextWrapper that allows the base context to be modified after it is initially set.


Inherited Constants
From class android.content.Context
Public Constructors
MutableContextWrapper(Context base)
Public Methods
void setBaseContext(Context base)
Change the base context for this ContextWrapper.
Inherited Methods
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object

Public Constructors

public MutableContextWrapper (Context base)

Since: API Level 1

Public Methods

public void setBaseContext (Context base)

Since: API Level 1

Change the base context for this ContextWrapper. All calls will then be delegated to the base context. Unlike ContextWrapper, the base context can be changed even after one is already set.

base The new base context for this wrapper.