ContextImpl

Class of snx.android.app · ContextImpl.java

public final class ContextImpl extends Context

ContextImpl ← Context

The base context of the application and of each component, as Android's ContextImpl: the app's resources and theme, its folders under the data root, its preferences and databases, and the in-process system services.

Page 1 2

Members

public ContextImpl(Resources resources, boolean deviceProtected) source
public void setOuter(Context outer) source

The context this one is the base of (the Application, an Activity): system services see it.

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

Files

public File getDataDir() source
public File getFilesDir() source
public File getNoBackupFilesDir() source
public File getCacheDir() source
public File getCodeCacheDir() source
public File getExternalFilesDir(String type) source
public File[] getExternalFilesDirs(String type) source
public File getObbDir() source
public File[] getObbDirs() source
public File getExternalCacheDir() source
public File[] getExternalCacheDirs() source
public File[] getExternalMediaDirs() source
public File getFileStreamPath(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 String[] fileList() source
public File getDir(String name, int mode) source

Preferences

public SharedPreferences getSharedPreferences(String name, int mode) source
public boolean moveSharedPreferencesFrom(Context sourceContext, String name) source
public boolean deleteSharedPreferences(String name) source

Databases

public File getDatabasePath(String name) source
public SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory) source
public SQLiteDatabase openOrCreateDatabase(String name, int mode, SQLiteDatabase.CursorFactory factory, DatabaseErrorHandler errorHandler) source
public boolean moveDatabaseFrom(Context sourceContext, String name) source
public boolean deleteDatabase(String name) source
public String[] databaseList() source

Page 1 2


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.