ContextWrapper

Class of android.content · ContextWrapper.java · Android's reference

public class ContextWrapper extends Context

ContextWrapper ← Context

A context that hands each call to another: its base.

Extended in the framework by

Page 1 2 3

Constructors

public ContextWrapper(Context base) source

Methods

protected void attachBaseContext(Context base) source
public Context getBaseContext() source
public AssetManager getAssets() source
public Resources getResources() source
public PackageManager getPackageManager() source
public ContentResolver getContentResolver() source
public Looper getMainLooper() source
public Context getApplicationContext() source
public void setTheme(int resid) source
public Resources.Theme getTheme() source
public ClassLoader getClassLoader() source
public String getPackageName() source
public ApplicationInfo getApplicationInfo() source
public String getPackageResourcePath() source
public String getPackageCodePath() source
public SharedPreferences getSharedPreferences(String name, int mode) source
public boolean moveSharedPreferencesFrom(Context sourceContext, String name) source
public boolean deleteSharedPreferences(String name) source
public FileInputStream openFileInput(String name) throws FileNotFoundException source
public FileOutputStream openFileOutput(String name, int mode) throws FileNotFoundException source
public boolean deleteFile(String name) source
public File getFileStreamPath(String name) source
public File getDataDir() source
public File getFilesDir() source
public File getNoBackupFilesDir() source
public File getExternalFilesDir(String type) source
public File[] getExternalFilesDirs(String type) source
public File getObbDir() source
public File[] getObbDirs() source
public File getCacheDir() source
public File getCodeCacheDir() source
public File getExternalCacheDir() source
public File[] getExternalCacheDirs() source
public File[] getExternalMediaDirs() source
public String[] fileList() source

Page 1 2 3


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.