Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

MutableContextWrapper

extends ContextWrapper
java.lang.Object
   ↳ 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.

Summary

[Expand]
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.
[Expand]
Inherited Methods
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object

Public Constructors

public MutableContextWrapper ( Context base)

Added in API level 1

Public Methods

public void setBaseContext ( Context base)

Added in 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.

Parameters
base The new base context for this wrapper.