Dalvik.SystemInterop.DexClassLoader Class
A class loader that loads classes from .jar and .apk files containing a classes.dex entry.

See Also: DexClassLoader Members

Syntax

[Android.Runtime.Register("dalvik/system/DexClassLoader", DoNotGenerateAcw=true)]
public class DexClassLoader : BaseDexClassLoader

Remarks

A class loader that loads classes from .jar and .apk files containing a classes.dex entry. This can be used to execute code not installed as part of an application.

This class loader requires an application-private, writable directory to cache optimized classes. Use Context.getCodeCacheDir() to create such a directory:

java Example

File dexOutputDir = context.getCodeCacheDir();
 

Do not cache optimized classes on external storage. External storage does not provide access controls necessary to protect your application from code injection attacks.

[Android Documentation]

Requirements

Namespace: Dalvik.SystemInterop
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3